LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Entries for sudoers configuration file (https://www.linuxquestions.org/questions/linux-newbie-8/entries-for-sudoers-configuration-file-231831/)

Hikito 09-17-2004 12:12 PM

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

Tinkster 09-17-2004 12:30 PM

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

Hikito 09-17-2004 12:33 PM

any print server?

Tinkster 09-17-2004 12:35 PM

%users localhost=NOPASSWD: /path/to/any/print/server <any print servers paramaters>

Hikito 09-17-2004 12:39 PM

what if I want to add only three users to service the printer, for example drew, matt, and addam?

Tinkster 09-17-2004 12:42 PM

Did you even LOOK at the file and the man-page?



Cheers,
Tink


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