LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   /etc/sudo (https://www.linuxquestions.org/questions/linux-software-2/etc-sudo-323459/)

darkleaf 05-14-2005 12:29 PM

/etc/sudo
 
I'm writing this from the example on the sudo site but it doesn't work:

Quote:

# /etc/sudoers
#
# This file MUST be edited with the 'visudo' command as root.
#
# See the man page for details on how to write a sudoers file.
#

# Host alias specification

# User alias specification

# Cmnd alias specification

# User privilege specification
root ALL=(ALL) ALL

philip qemu = (root) /usr/bin/qemu
The idea is that my account (philip) ca only run qemu as root. How would I change this cause I can't see how it's different except for some variables from this example:

Quote:

dgb boulder = (operator) /bin/ls, /bin/kill, /usr/bin/lprm
Which should allow user dgb to run ls, kill and lprm as op.

When I run qemu with sudo as my user it says I'm not allowed to do so. Should I relogin before this works? Thanks in advance for the help!

foo_bar_foo 05-14-2005 01:36 PM

this can get kind of picky when you try to do it by hand
try

philip ALL=/usr/bin/qemu

edit: i'm sure you meant this but the file is named sudoers and not sudo yes?

darkleaf 05-14-2005 03:08 PM

Yes I meant /etc/sudoers :) Must have made that error cause of visudo

Thanks it's working :) Could that be because I didn't make a alias group or something like that?


All times are GMT -5. The time now is 10:46 PM.