I made this mistake at the /usr directory

sudo chmod -R 777 bin

The next time i used sudo, it gives me this prompt:

sudo must be setuid root

What I did is copy and replaced this sudo thinking it would recover its default permission. Now the sudo command prompts this :

bash: /usr/bin/sudo: Permission denied

HELP. I cant change the permission of sudo already. pexec did nothing as well.

  • You can try to boot from an Live CD and use the root account to restore the permissions... – Manuel May 29 '13 at 6:40
  • Try the command sudo -i, type your password, and then try to change permissions. – Mitch May 29 '13 at 6:41

Your Answer

 

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Browse other questions tagged or ask your own question.