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

Thread: The results of sudo chmod 777 /.*

  1. #1
    Join Date
    May 2009
    Beans
    19

    The results of sudo chmod 777 /.*

    Hi,


    I CD to specific directory on the Desktop and mistakenly typed:

    sudo chmod 777 /.*

    Instead of

    sudo chmod 777 ./*

    The results are catastrophic: Ubuntu cannot restart, and I do not know how to restore it to its the previous phase.


    Maybe you have any idea

    Thanks,
    Oof

  2. #2
    Join Date
    Mar 2009
    Location
    Land of the sand
    Beans
    Hidden!
    Distro
    Ubuntu 8.10 Intrepid Ibex

    Re: The results of sudo chmod 777 /.*

    You can use a live CD to backup your work somewhere else and then reinstall.
    Peace
    YAY! #200

  3. #3
    DeMus is offline I Ubuntu, Therefore, I Am
    Join Date
    May 2008
    Location
    The Netherlands
    Beans
    2,146

    Re: The results of sudo chmod 777 /.*

    Quote Originally Posted by _Purple_ View Post
    You can use a live CD to backup your work somewhere else and then reinstall.
    I second that since I think you are in deep ****. Changing folder and file properties of system files is a terrible thing to do and results, as you have seen, in a not working system.
    Backup your important stuff (don't forget the hidden files and folders) and start all over.

  4. #4
    Join Date
    Mar 2006
    Location
    Greece
    Beans
    41
    Distro
    Ubuntu Karmic Koala (testing)

    Re: The results of sudo chmod 777 /.*

    Actually then only thing you can do is what is mentioned above. There no way to restore the file permission to what the were before. At least not on all files and you 're better off reinstalling the system. Then coping the files you own, to reset the permissions on them too. But I can't help myself on commenting.

    You used SUDO to change permissions on a folder you OWN.
    Please don't do that.
    That's why Ubuntu does not allow you (by default) to log in as root.

  5. #5
    Join Date
    Apr 2009
    Location
    Latvia, Riga
    Beans
    273
    Distro
    Ubuntu 9.04 Jaunty Jackalope

    Re: The results of sudo chmod 777 /.*

    You can't fix it ! The one and only choice is to backup your data and reinstall Ubuntu.
    Good luck
    - Programmers don't die, they just GOSUB without RETURN
    - Include this in your CONFIG.SYS File: BUGS=OFF
    - Linux is not just a hobby, it's an obsession !

  6. #6
    Join Date
    Feb 2007
    Location
    Romania
    Beans
    Hidden!

    Re: The results of sudo chmod 777 /.*

    Quote Originally Posted by oof View Post
    Hi,

    ...

    The results are catastrophic: Ubuntu cannot restart, and I do not know how to restore it to its the previous phase.


    Maybe you have any idea

    Thanks,
    Oof
    Try to boot in recovery mode and restore the permissions:
    Code:
    chmod 0755 /
    chmod 0755 /*
    chmod 1777 /tmp
    chmod 0750 /root
    chmod 0700 /lost+found
    If you can boot in recovery mode, then boot a liveCD, mount the root partition and restore the permissions.
    Last edited by sisco311; June 7th, 2009 at 10:10 AM.

  7. #7
    Join Date
    Nov 2007
    Location
    Okieville, USA
    Beans
    3,178
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: The results of sudo chmod 777 /.*

    When you re-install, make a seperate /home partition by selecting: Manual.
    MCP, A+/Linux+ Certified IT Technician
    System Specs | Dress up your "Super Button" FREE
    "If sometimes you can't be good, then be VERY good at being naughty!"

  8. #8
    Join Date
    May 2009
    Beans
    19

    Re: The results of sudo chmod 777 /.*

    Quote Originally Posted by sisco311 View Post
    Try to boot in recovery mode and restore the permissions:
    Code:
    chmod 0755 /
    chmod 0755 /*
    chmod 1777 /tmp
    chmod 0750 /root
    chmod 0700 /lost+found
    If you can boot in recovery mode, then boot a liveCD, mount the root partition and restore the permissions.
    I'll try this option before doing anything too drastic. It is not clear to me: does the command "chmod ... /.*" change also sub-directories, or it is restricted only to the directories on the root.



    Thanks all for the help,
    Oof

  9. #9
    Join Date
    Feb 2007
    Location
    Romania
    Beans
    Hidden!

    Re: The results of sudo chmod 777 /.*

    Quote Originally Posted by _Purple_ View Post
    You can use a live CD to backup your work somewhere else and then reinstall.
    Quote Originally Posted by DeMus View Post
    I second that ...
    Quote Originally Posted by Phasmagon View Post
    Actually then only thing you can do is what is mentioned above. ...
    Quote Originally Posted by ActiveFrost View Post
    You can't fix it ! The one and only choice is to backup your data and reinstall Ubuntu.
    Good luck
    Quote Originally Posted by theozzlives View Post
    When you re-install, make a seperate /home partition by selecting: Manual.
    The chmod command is NOT recursive by default.

    /.* means all the files (and directories) in the root ("/") directory including the hidden files/directories ( . = current directory and .. = parent directory) but NOT the sub-directories.

    The OP only needs to restore the permissions on the above mentioned directories. So there is NO need for a re-install.

  10. #10
    Join Date
    Feb 2007
    Location
    Romania
    Beans
    Hidden!

    Re: The results of sudo chmod 777 /.*

    Quote Originally Posted by oof View Post
    I'll try this option before doing anything too drastic. It is not clear to me: does the command "chmod ... /.*" change also sub-directories, or it is restricted only to the directories on the root.



    Thanks all for the help,
    Oof
    It's restricted only to the directories.

Page 1 of 2 12 LastLast

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
  •