Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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 stackoverflow.com 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

3 Answers 3

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
1  
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

Password:

Enter new UNIX password:

Retype new UNIX password:

then reboot, hope this will help you

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.