drahnier
06-03-2006, 01:03 PM
in the course of customizing entries in /etc/sudoers, i lost the ability to sucessfully execute "sudo gainroot".
here's what happened:
i added some lines to /etc/sudoers and afterwards this file ended with
permissions: -rwxr-xr-x 1 user root.
when trying to do "sudo gainroot" this fails and i et "sudo: /etc/sudoers is mode 0755, should be 0440".
well, i can do a "chgmode 0440 /etc/sudoers" to set the suggested mode, but "sudo gainroot" still fails, this time wit "suduo /etc/sudoers is owned by uid 29999, should be 0".
now, attemting to change ownership (using "chown") fails: root permission required.
so, i need some help here:
- is there an alternative way of getten root permission to fix the mode/owner bits of /etc/sudoers?
_______________
drahnier
here's what happened:
i added some lines to /etc/sudoers and afterwards this file ended with
permissions: -rwxr-xr-x 1 user root.
when trying to do "sudo gainroot" this fails and i et "sudo: /etc/sudoers is mode 0755, should be 0440".
well, i can do a "chgmode 0440 /etc/sudoers" to set the suggested mode, but "sudo gainroot" still fails, this time wit "suduo /etc/sudoers is owned by uid 29999, should be 0".
now, attemting to change ownership (using "chown") fails: root permission required.
so, i need some help here:
- is there an alternative way of getten root permission to fix the mode/owner bits of /etc/sudoers?
_______________
drahnier