Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I was installing GIT on my machine, when I sudo any thing, this error message appears:

sudo: must be setuid root 

I tried from recovery mode to change permissions of usr/bin/sudo by:

chown root:root /usr/bin/sudo
chmod 4755 /usr/bin/sudo
chmod 0440 /etc/sudoers

but the chown or chmod not working cause the file is read only.

share|improve this question
add comment

1 Answer

When starting in recovery mode your / file system is mounted read-only. So the first command must be

mount / -o remount,rw

after that the commands you found yourself will solve your problem.

share|improve this answer
add comment

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.