Results 1 to 8 of 8

Thread: sudo chmod 000 / ;your password; blackouttt!

  1. #1
    Join Date
    Jan 2009
    Beans
    10

    sudo chmod 000 / ;your password; blackouttt!

    I have typed this command into the terminal window. I just typed it for experimental purpose, after that everything went blank. How to recover from this situation. Help Me.

  2. #2
    Join Date
    Apr 2007
    Location
    Souf Cackalacky
    Beans
    603
    Distro
    Ubuntu Development Release

    Re: sudo chmod 000 / ;your password; blackouttt!

    First, I would try to boot into recovery mode. When you computer is booting, hold shift (if you installed Karmic from scratch) or press Esc (if you upgraded from or are still running Jaunty) to get to the Grub boot menu. Use the arrow keys to select the recovery mode (probably the second option available) and press enter.

    If the computer boots properly, you'll get a second menu on a blue screen. Choose to boot into a root console, and you can reset your permissions properly from there with:

    chmod 755 /

    But if nothing is readable, then the computer probably won't even boot. Recover your data with a live CD and reinstall.

  3. #3
    Join Date
    Dec 2006
    Beans
    1,133
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: sudo chmod 000 / ;your password; blackouttt!

    Quote Originally Posted by prithvi View Post
    I have typed this command into the terminal window. I just typed it for experimental purpose, after that everything went blank. How to recover from this situation. Help Me.
    select "recovery mode" from the grub menu at boot, then "root shell". Not sure of the exact wording. Execute this command "chmod 755 /" and don't ever do what you did again!

    If that does not work, boot from a live CD. You will need to mount your hard drive / directory somewhere else in the live CD environment, or it may be automatically mounted for you, possibly under /mnt/sda1 or something similar. Once you have determined the correct mountpoint for the / used by your istalled system, use the same chmod command specifying that mountpoint.

    I realize the above paragraph may be unclear if you are not familiar with the terms used. If you need more help post again.
    There are no dumb questions, just dumb answers.

  4. #4
    NoaHall is offline Iced Blended Vanilla Crème Ubuntu
    Join Date
    Mar 2009
    Beans
    1,562
    Distro
    Ubuntu 9.10 Karmic Koala

    Re: sudo chmod 000 / ;your password; blackouttt!

    Don't ever chmod anything outside of your /home/, with the exception of /media/disks.

  5. #5
    Join Date
    Apr 2005
    Beans
    514
    Distro
    Ubuntu 9.10 Karmic Koala

    Re: sudo chmod 000 / ;your password; blackouttt!

    First off, who advised you to type these commands? If it's not you and someone else on this forum, he/she ought to be banned.

    For future reference, here's how the chmod system works: The three digits represents owner, group, and others, in that order. Now, each of these digits are actually groups of three bits that gets toggled on/off for the permissions - 4=Read, 2=Write, 1=Execute. Sum them up to get the number you're looking for

    So, 000 means you deny permission to read, write, or execute to everybody. On the other hand, 755 means all permissions to owner and read+execute for group and others.

    Remember: Experience is a very good teacher, but tuition very expensive. If you're stuck reformatting, we can help recover your data.
    Think before you type: If anybody asks you to type anything with rm -rf on the CLI, DO NOT do it! As a matter of fact, if you don't know what a set of commands will do, ask for clarification from other members.
    My home page: www.cyeungrun.com

  6. #6
    Join Date
    Apr 2009
    Beans
    298
    Distro
    Kubuntu

    Re: sudo chmod 000 / ;your password; blackouttt!

    you should be able to mount your disk drive with a live cd, and change the permissions back with sudo chmod 755 /mountpoint/of/your/disk

    No format should be required

  7. #7
    Join Date
    Apr 2005
    Beans
    514
    Distro
    Ubuntu 9.10 Karmic Koala

    Re: sudo chmod 000 / ;your password; blackouttt!

    Quote Originally Posted by nerdopolis View Post
    you should be able to mount your disk drive with a live cd, and change the permissions back with sudo chmod 755 /mountpoint/of/your/disk

    No format should be required
    Concurred.
    Think before you type: If anybody asks you to type anything with rm -rf on the CLI, DO NOT do it! As a matter of fact, if you don't know what a set of commands will do, ask for clarification from other members.
    My home page: www.cyeungrun.com

  8. #8
    Join Date
    Jan 2009
    Beans
    10

    Re: sudo chmod 000 / ;your password; blackouttt!

    Thank you guys for help

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
  •