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 03-15-2006, 09:09 AM   #1
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?

Old 03-15-2006, 05:16 PM   #2
LQ Guru
Registered: Dec 2005
Location: Somewhere on the String
Distribution: Debian Wheezy (x86)
Posts: 6,094

Rep: Reputation: 271Reputation: 271Reputation: 271
Look at the bottom of this page:

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...)


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

All times are GMT -5. The time now is 08:18 PM.

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