Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 05-14-2005, 01:29 PM   #1
Senior Member
Registered: Jun 2004
Location: the Netherlands
Distribution: debian SID
Posts: 2,170

Rep: Reputation: 45

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

# /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:

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!
Old 05-14-2005, 02:36 PM   #2
Senior Member
Registered: Jun 2004
Posts: 2,553

Rep: Reputation: 52
this can get kind of picky when you try to do it by hand

philip ALL=/usr/bin/qemu

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

Last edited by foo_bar_foo; 05-14-2005 at 02:38 PM.
Old 05-14-2005, 04:08 PM   #3
Senior Member
Registered: Jun 2004
Location: the Netherlands
Distribution: debian SID
Posts: 2,170

Original Poster
Rep: Reputation: 45
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?


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Restricting Editing in Sudo (Advanced Sudo Question) LinuxGeek Linux - Software 4 11-04-2006 04:20 PM
su and sudo muman Linux - Security 9 12-30-2004 11:55 AM
sudo pk21 Linux - Newbie 7 10-07-2003 08:53 AM
need help with sudo mla Linux - Software 4 10-02-2003 12:05 PM
sudo? nabil Linux - Security 1 02-12-2001 02:18 PM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 07:22 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration