LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This 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


Reply
  Search this Thread
Old 09-17-2004, 12:12 PM   #1
Hikito
LQ Newbie
 
Registered: Sep 2004
Location: NM
Distribution: Slackware
Posts: 6

Rep: Reputation: 0
Entries for sudoers configuration file


I been trying to figure this out but I'm stuck, any help would be grately appreciated!

How can I create two entries for the sudoers configuration file:

a) One entry that allows users to service a printer, unjam it, and restart printer daemons on the machine print server?

b)One entry that allows users to kill jobs and reboot the machines in a student lab?


Thanks in advance
 
Old 09-17-2004, 12:30 PM   #2
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
Quote:
a) One entry that allows users to service a printer, unjam it, and restart printer daemons on the machine print server?
Depends on the print server, I guess ...


Quote:
b)One entry that allows users to kill jobs and reboot the machines in a student lab?
I'd be a bit cautios with the "kill jobs" though ... :) or are you talking
print-jobs here?

%users localhost=NOPASSWD: /usr/bin/kill, /sbin/reboot


Cheers,
Tink
 
Old 09-17-2004, 12:33 PM   #3
Hikito
LQ Newbie
 
Registered: Sep 2004
Location: NM
Distribution: Slackware
Posts: 6

Original Poster
Rep: Reputation: 0
any print server?
 
Old 09-17-2004, 12:35 PM   #4
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
%users localhost=NOPASSWD: /path/to/any/print/server <any print servers paramaters>
 
Old 09-17-2004, 12:39 PM   #5
Hikito
LQ Newbie
 
Registered: Sep 2004
Location: NM
Distribution: Slackware
Posts: 6

Original Poster
Rep: Reputation: 0
what if I want to add only three users to service the printer, for example drew, matt, and addam?
 
Old 09-17-2004, 12:42 PM   #6
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
Did you even LOOK at the file and the man-page?



Cheers,
Tink
 
  


Reply



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
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
Help Editing Sudoers File Rubicone Linux - Newbie 2 05-03-2002 01:50 AM
The Sudoers File Rubicone Linux - Security 0 05-02-2002 06:17 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 02:19 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration