fire following commands .
Code:
chown root:root /usr/bin/sudo
chmod 4755 /usr/bin/sudo
Code:
shutdown -r now
In case if you are getting a "Sudo: /etc/sudoers is mode 0777, should be 0440" message on startup then
go to recovery console and fire following command
Code:
chmod 0440 /etc/sudoers
-Mihir Patel
14 comments:
Thanks :):):)
How do you get to recovery console I'm Running Ubuntu Server 10
did not have this problem with gutsy. Works fine now, :)
Did not have this problem with gutsy. Works fine now. :)
It says me Permission denied.
for the both the above comments.
ishita,
just use sudo in front of the command, in linux when you user this it means "Super user do" in short "do what i tell you i am administrator".
when i type sudo i get this problem so how can i get the permission to execute this command
what problem do you get ?
I still see the same message --
sudo: must be setuid root
Thankyou so much!!!! I had about 3 months of work on this computer, you just saved me my job. Thankyou from USA.
-open source
If you're getting the Permission denied that's because you are trying to execute the commands as a normal user (not administrator). Normally you would use sudo to execute the commands as administrator but sudo is broken, so you have two choices:
- go to the recovery console where you'll boot as root and therefore have permissions to modify sudo
- boot from a live cd and mount the partition where your sudo file is, and now you can run the commands over that sudo file using the not broken sudo from the live cd
Thanks for adding the info(Under bonet working)
how to move to recovery console please let me know
hey man can you read this please let me know steps of this.
recovery console
how can i?
i am new to ubuntu?
Post a Comment