Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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
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.. :/
If you want members of the wheel group to be able to run sudo commands add an entry in the sudoers file for them using visudo to edit (either via sudo or as root):
Code:
%wheel ALL=(ALL) ALL
Group to assign permissions Machine=(user to run command as) Command(s) to run
Damn, I was a bit slow with my typing!
Last edited by Disillusionist; 12-01-2007 at 03:54 PM.
If you want members of the wheel group to be able to run sudo commands add an entry in the sudoers file for them using visudo to edit (either via sudo or as root):
Code:
%wheel ALL=(ALL) ALL
Group to assign permissions Machine=(user to run command as) Command(s) to run
Damn, I was a bit slow with my typing!
i myself thought i had it right, but i myself was following the error to change user to 0 but ahhh now i get what the error was saying darn it, OWNED BY USER 0 which is root, ahhh! root i mis-read the prompt but i was close i'll remember that the next time it comes for an asnwer or incase I myself have any trouble..
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.
IIRC, sudo checks the permissions of the sudoers file and if they are not what they should be, the program will refuse to work. This is meant to avoid situations where a careless admin would allow non-root users to edit sudoers and thus elevate their privileges.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.