LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
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: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 22,978
Blog Entries: 11

Rep: Reputation: 879Reputation: 879Reputation: 879Reputation: 879Reputation: 879Reputation: 879Reputation: 879
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: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 22,978
Blog Entries: 11

Rep: Reputation: 879Reputation: 879Reputation: 879Reputation: 879Reputation: 879Reputation: 879Reputation: 879
%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: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 22,978
Blog Entries: 11

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



Cheers,
Tink
 
  


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


All times are GMT -5. The time now is 05:43 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