Server Fault is a question and answer site for system and network administrators. 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 accidentally chown the /etc/sudoer/ folder so that my sudo command no longer works. (I can only ssh into this Linux Centos vm on windows azure) I don't have the root password and I wonder how I may reset the root password, or just chown the /etc/ folder back to root. Thanks a lot!

share|improve this question
Can you boot a livecd with SSH access? Or somehow attach to the disk from another system? – Zoredache Oct 10 '12 at 19:12
up vote 4 down vote accepted

single user mode has no network so you cannot do so through ssh. if you cannot get the vm console access, you need to contact azure support to help you, such as have them boot the vm into a livecd and set up ssh access with sudo.

share|improve this answer
Thanks for your answer. I got quite disappointed by microsoft support, as they said the product is in preview phase and all request should be direct to an online forum (seriously?). And that is a forum with few visitors. ;( – StCee Oct 10 '12 at 18:33
sounds like the other answer to your question may help you more then. this is what the azure support seems to be saying (though not the exact same problem as yours but analogous). you do need to mount the disk to another azure vm with root access and modify the data, and then restart the vm.… – johnshen64 Oct 10 '12 at 18:46

If you can mount the harddrive in another VM with root access you can change the permissions.

share|improve this answer

Your Answer


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.