LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
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.

Notices

Reply
 
Search this Thread
Old 03-15-2006, 08:09 AM   #1
Harlin
Member
 
Registered: Dec 2004
Location: Atlanta, GA U.S.
Distribution: I play with them all :-)
Posts: 316

Rep: Reputation: 30
Sudoers File Help


I promise to read the Sudoers manual on the Sudo page, but first I need to give a user sudo rights to have the ability to read certain files but not be able to reboot the server or restart services. How would I set up a sudoers file to allow this?

Thanks
 
Old 03-15-2006, 04:16 PM   #2
pljvaldez
Guru
 
Registered: Dec 2005
Location: Somewhere on the String
Distribution: Debian Squeeze (x86)
Posts: 6,092

Rep: Reputation: 269Reputation: 269Reputation: 269
Look at the bottom of this page: http://osl.birzeit.edu:8080/wiki2/index.php/Sudo

Looks like you can easily confine someone to a single directory by:

username ALL= /bin/kill,/sbin/linuxconf, /usr/sbin/jim/

Where /bin/kill and /sbin/linuxconf are specific commands username can run and /usr/sbin/jim/ is the only directory he can run them from (at least that's my understanding, I haven't actually tried this...)
 
  


Reply


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
Help with sudoers file (visudo) jasongunnisthedevil Linux - Security 1 01-20-2006 11:38 PM
I deleted /etc/sudoers and creates a new file call sudoers but now it doesnt for visu abefroman Linux - Software 1 11-10-2005 05:03 PM
sudoers file cactus-bob Linux - Newbie 2 03-11-2004 11:24 AM
help with sudoers file ogden2k Linux - Security 4 03-11-2003 10:39 AM
The Sudoers File Rubicone Linux - Security 0 05-02-2002 06:17 PM


All times are GMT -5. The time now is 02:40 AM.

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