Page 1 of 2 12 LastLast
Results 1 to 10 of 17

Thread: Messed File Permissions/ is it necessary to reinstall?

  1. #1
    Join Date
    Dec 2008
    Location
    Baroda, India
    Beans
    112
    Distro
    Ubuntu 12.04 Precise Pangolin

    Exclamation Messed File Permissions/ is it necessary to reinstall?

    I am going through the same problem. I ran sudo chmod 777 -R * in wrong directory (to make it worse the directory was root /). So I was unable to even login to ubuntu. It threw me back to login screen even when I am logged in. It also gave me a graphical popup message saying: Install error: the config details for GNOME power manager has not been installed correctly. Contact your computer Administrator.
    Afte logging in (without letting me actually login) it gave me the error: there is problem with the configuration server. /usr/lib/libconfig2-4/gconf-sanity-check-2 exited with status 256

    After a bit of research I did following:

    in recovery mode root prompt I run following commands:

    Code:
    chmod 755 /etc/gconf/gconf.xml.system
    chmod 777 /tmp
    chmod 700 /home/my_user_id
    chmod -R 700 /home/my_user_id
    chmod 644 /home/my_user_id/.dmrc
    After that I was atleast able to login to Gnome session with root user.
    Now I tried to check user/group permissions but it gave me the error: can not open unknown error occured. Wired Network devices can not load at the boot and are not editable anymore, so obviously I am not able to connect to the internet. So I am not able to do important administrative tasks and Audio is also missing. Things like System Testing is also not working. Most things that involves some kind of special privileges are not working. I need some help as there are lot many softwares (including servers/websites) installed and I don't want to reinstall ubuntu (after taking lot of backup).

    Even more research and through recovery mode root I changed /etc/sudoers permission to 0440 and was able to use sudo command in terminal but still administrative services are out of control.

    I even tried to create new user but system denies to open services. So One thing I can do is to create new sudo su super user using terminal and can login with that user and change permissions in current user. Can someone tell me how to create new super user sudo user su using command line, terminal. OR

    Can I restore my file permissions to default (0755/0644/0440 etc) by ubuntu.

    Links to solution of the problem are okey...

    Is it really necessary or compulsory to reinstall as it can be a lot of work for me. A whole week of extra work. (I don't even have backups ()
    Tusker's Ubuntu Machine
    Nonsense - the Sense within

  2. #2
    Join Date
    Dec 2008
    Location
    Baroda, India
    Beans
    112
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: Messed File Permissions/ is it necessary to reinstall?

    I have updated few files manually and few applications started working but I have thousands of them installed so is there any other way I can do this?
    Tusker's Ubuntu Machine
    Nonsense - the Sense within

  3. #3
    Join Date
    Jan 2007
    Beans
    Hidden!
    Distro
    Ubuntu Development Release

    Re: Messed File Permissions/ is it necessary to reinstall?

    In most cases a user who has done what you have and doesn't want to reinstall spends a long time trying to fix the system ... and then finally reinstalls anyway.

    I would recommend a reinstall but there are some things you can do to make it less painful, if your system allows you to.

    Make a copy of the installed packages via Synaptic. File, Save Markings. Make sure you tick the "save full state" in the lower left corner, and also that you save this to a partition that will not be formatted. You can then import them on the new system via Synapatic's "read markings".

    You can also make a copy of your /home folder. Since it contains many of your configuration settings, it will help setting up your new system to be similar to your old one. If you can, you can move your /home to a separate partition now and use it during the new install (identify it but do NOT format it). There are several links on how to make a separate home partition (again, if your system lets you).

    If find it useful to also just make copies of the /etc and /boot folders just in case I want to retrieve a file from it later.

    Best of luck with whatever you decide to do.
    Back to Xorg...

    Retired.

  4. #4
    Join Date
    Dec 2008
    Location
    Baroda, India
    Beans
    112
    Distro
    Ubuntu 12.04 Precise Pangolin

    Cool Re: Messed File Permissions/ is it necessary to reinstall?

    Quote Originally Posted by drs305 View Post

    Make a copy of the installed packages via Synaptic. File, Save Markings. Make sure you tick the "save full state" in the lower left corner, and also that you save this to a partition that will not be formatted. You can then import them on the new system via Synapatic's "read markings".
    I have recovered a lot many things but still there is a lot of mess. The most important thing is that still I am unable to access user/group thing and Synaptic also. So markings are not possible right now. Is there anyway I can set correct file permissions for atleast markings via Synaptic. I have a script that I found on ubuntuforums for dpkg permissions restore. Should I give it a try? I am attaching it here for your reference.

    Thanks, any other help would be appreciated.
    Attached Files Attached Files
    Tusker's Ubuntu Machine
    Nonsense - the Sense within

  5. #5
    Join Date
    Mar 2007
    Beans
    13

    Re: Messed File Permissions/ is it necessary to reinstall?

    I have a really unusual knome terminal problem. I've upgraded to 9.10 but have quite a few issues. (Mostly around networking). But the knome terminal is messed up.

    The "P" key doesn't work. Even a new install won't fixit. Has to be some configuration file in my directory but I have no clue where the config files are.

    Any ideas?

    Tom S.

  6. #6
    Join Date
    Jan 2007
    Beans
    Hidden!
    Distro
    Ubuntu Development Release

    Re: Messed File Permissions/ is it necessary to reinstall?

    Quote Originally Posted by suniyo View Post
    I have recovered a lot many things but still there is a lot of mess. The most important thing is that still I am unable to access user/group thing and Synaptic also. So markings are not possible right now. Is there anyway I can set correct file permissions for atleast markings via Synaptic. I have a script that I found on ubuntuforums for dpkg permissions restore. Should I give it a try? I am attaching it here for your reference.

    Thanks, any other help would be appreciated.
    Unfortunately that script doesn't rename the system files you need to repair.

    What error message do you get when you try to run Synaptic? The Synaptic file itself has permissions of -rwxr-xr-w. To get that, you would run:
    Code:
    sudo chmod 755 /usr/sbin/synaptic
    However, you may not be able to use sudo. In which case, you need to add yourself back to the admin group. You may be able to do so by booting to the recovery mode, selecting "Drop to root prompt" and then adding yourself to admin with the following. Substitute your username for username:
    Code:
    adduser username admin
    Back to Xorg...

    Retired.

  7. #7
    Join Date
    Dec 2008
    Location
    Baroda, India
    Beans
    112
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: Messed File Permissions/ is it necessary to reinstall?

    Okey I will give it a try today. Thanks for all the help. Network thing is not working so accessing internet is not possible through ubuntu so on dual boot I am using windows right now but few websites are down and I am not liking it.

    Will try to update user, synaptic and network and will post the results here. Bye for now.
    Tusker's Ubuntu Machine
    Nonsense - the Sense within

  8. #8
    Join Date
    Dec 2008
    Location
    Baroda, India
    Beans
    112
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: Messed File Permissions/ is it necessary to reinstall?

    applying all the commands as you mentioned still able to access nothing
    markings are okey if I don't get them I know what softwares I have installed but DATA is not backed up. Windows drives are not mounting so can not copy data there. DVDs or USB drives are also no mounting. Is there any other way I can take backup of all the data I have.

    I tried to access ext3 files on harddrive using these: http://www.fs-driver.org/index.html & http://www.chrysocome.net/explore2fs but none worked. Are there any other ways to achieve this. I atleast need a good backup everything else would be okey.

    Also not able to access mysql on command line or via phpmyadmin so DBs are lost anyway. Can I recover them?

    I have added user to admin but still not able to access sudo it says suid not defined or something like that. hell of a mess.
    Tusker's Ubuntu Machine
    Nonsense - the Sense within

  9. #9
    Join Date
    May 2009
    Location
    Wilton, CT
    Beans
    190
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: Messed File Permissions/ is it necessary to reinstall?

    Quote Originally Posted by drs305 View Post
    I would recommend a reinstall but there are some things you can do to make it less painful, if your system allows you to.
    Make a copy of the installed packages via Synaptic. File, Save Markings. Make sure you tick the "save full state" in the lower left corner, and also that you save this to a partition that will not be formatted. You can then import them on the new system via Synapatic's "read markings".
    You can also make a copy of your /home folder. Since it contains many of your configuration settings, it will help setting up your new system to be similar to your old one. If you can, you can move your /home to a separate partition now and use it during the new install (identify it but do NOT format it). There are several links on how to make a separate home partition (again, if your system lets you).

    If find it useful to also just make copies of the /etc and /boot folders just in case I want to retrieve a file from it later.
    drs305, I've started on this prep, but was going to try to do an upgrade first using the alternate CD to see if it works. I was going to clone the drive first to an external device just to be safe.

    I worked on moving my \home to a new partition today (done), and just now did Synaptic save markings thing (save to a different partition).

    Assuming I don't upgrade, but install fresh, can you describe the steps I would take that would allow me to restore my current applications and settings? Only caveat for me, is that right now my machine is dual boot, and my XP NTFS partition is the one that's marked as "boot."

  10. #10
    Join Date
    Dec 2008
    Location
    Baroda, India
    Beans
    112
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: Messed File Permissions/ is it necessary to reinstall?

    Quote Originally Posted by kendoori View Post
    drs305, I've started on this prep, but was going to try to do an upgrade first using the alternate CD to see if it works. I was going to clone the drive first to an external device just to be safe.

    I worked on moving my \home to a new partition today (done), and just now did Synaptic save markings thing (save to a different partition).

    Assuming I don't upgrade, but install fresh, can you describe the steps I would take that would allow me to restore my current applications and settings? Only caveat for me, is that right now my machine is dual boot, and my XP NTFS partition is the one that's marked as "boot."
    Solved almost. Live CD helped me a lot.

    HTML Code:
    sudo nautilus
    It gives me all necessary permissions to change and backup copies to a windows drive. Easy 20GB Data copies in just 30 minutes at 9Mbps on SATA. Now will try to recover using live CD for one last time if I can or other wise reinstall is good. In my case synaptic doesn't even allow to save markings. SUDO not working so there is too much mess and I have made it even worse, but I have a back up now

    Changing file permissions with millions of files is not possible so best thing is to reinstall that I have realized lately. Thanks to everyone for all the help. Amen.
    Tusker's Ubuntu Machine
    Nonsense - the Sense within

Page 1 of 2 12 LastLast

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •