[sudo-users] repairing corrupted sudoers
Todd C. Miller
Todd.Miller at courtesan.com
Fri Jan 14 10:49:37 EST 2011
On Fri, 14 Jan 2011 03:31:13 PST, Mahmood Naderan wrote:
> Is there any way to fix the corrupted sudoers file without livecd.
> For servers which we work remotely, there should be a way to remotely
> fix that. Currently for every sudo command, I get:
>
> sudo: /etc/sudoers is mode 0640, should be 0440
> sudo: no valid sudoers sources found, quitting
If you use visudo to edit /etc/sudoers you won't have these types
of problems.
If you can login as root via ssh or su to root via a normal user
you can fix the permissions, either directly via "chmod 0440
/etc/sudoers" or by running visudo.
- todd
More information about the sudo-users
mailing list