Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I changed the folder permissions of /usr/bin to 777. Now when I login to root user it shows "incorrect password".

Now I'm not able to do anything on this PC. How can I revert the permissions of /usr/bin without a terminal? I think I need to change them to 751.

I can login via CtrlAltF1, but not into root.

share|improve this question

migrated from Aug 3 '12 at 10:49

This question came from our site for professional and enthusiast programmers.

thank you @slhck – abhi Aug 3 '12 at 12:08
up vote 5 down vote accepted

Boot off the install CD but dont install, mount the folder, and change the permissions back.

share|improve this answer
thanks @BugFinder you saved my lot of time. – abhi Aug 3 '12 at 11:59

I think you should use single user mode to fix this problem.

  1. boot the computer and stop it in grub menu
  2. edit the boot parameter, just append 'single' to your current linux kernel, and press ENTER
  3. after booting, you will be in single user mode, with root permission (without password) and with very few services enabled
  4. change the permission by 'chmod 751 /usr/bin'
  5. reboot and done

Hope this will help you.

share|improve this answer
This is exactly what single-user mode is for. +1 – Benjamin Bannier Aug 3 '12 at 11:41

Maybe you should try to boot in command line mode first, I used ubuntu for a while(now I am always in fedora ), in ubuntu, when I try to change into root mode and enter the correct password, it show 'incorrect password', I did this in command line: $ sudo passwd


Enter new UNIX password:

Retype new UNIX password:

then reboot, hope this will help you

share|improve this answer

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .