sudoers file error: owned by gid 10, should be 0
hey all, I've been on kind of a rant lately with permissions questions and I think I'm nearing the end. I've been trying to give one of my users sudo permissions so I put them in the wheel group and changed the sudoers file to reflect such. when I try to run anything under sudo, I get the following message. I looked around the forum for answers but can't really find anything. Can anyone help? thanks again.
sudo: /etc/sudoers is owned by gid 10, should be 0 |
try this
sudo chmod 0 /etc/sudoers edit: --> adding: i think that's what it is referring to http://www.mkssoftware.com/docs/man1/chmod.1.asp |
Err ... chmod changes permissions not group ownership. Generally in Linux GID 0 is root and GID 10 is wheel. Try:
Code:
chgrp root /etc/sudoers |
Quote:
|
wait can't chmod change owner, i think i did that when i was deleting tmp folder and coudln't login due to insufficient error, in terminal the problem was seen as a permissions/allow error,, so i chmod 1777 tmp and then i was up and running, hmmm...i think i got myself confused now.. :/
|
Do not run the command in the previous post!
The /etc/sudoers file should be owned by root with -r--r----- permissions. As root: Code:
chown root:root /etc/sudoers Code:
%wheel ALL=(ALL) ALL Damn, I was a bit slow with my typing! |
Sweet btmiller, that worked beautifully. So what I am seeing is that the file was not owned by root anymore for some reason. Wheel group owned it.
that being the case, if I am a member of wheel group, why wouldn't it work anyway. Is it because wheel group is lower on the pole than root? thanks again for solving the problem. |
Quote:
|
Quote:
|
All times are GMT -5. The time now is 12:03 AM. |