LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 06-23-2008, 10:38 AM   #1
SheMoves
LQ Newbie
 
Registered: Jun 2008
Posts: 6

Rep: Reputation: 0
Create two entries for the sudoers configuration file - help!


I would like to create two entries for the sudoers configuration file:
(a) One entry that allows a user pat, cindy, and tim to service the printer, unjam it, restart printer daemons on the machine printserver.

Is what I did correct? Because I am unable to access the sudoers configuration file.

The sudoers file allows me to group according to function, so I will assign an alias called PrinterAdmins.

User_Alias PrinterAdmins = pat, cindy, tim, %operator
PrinterAdmins ALL = !/usr/bin/su, !SHELLS

Cmnd_Alias PRINTING = /usr/sbin/lpc, /usr/bin/lprm
Cmnd_Alias REBOOT = /usr/sbin/reboot, /usr/sbin/fastboot
Cmnd_Alias SHELLS = /usr/bin/sh, /usr/bin/csh, \
/usr/bin/ksh, /usr/local/bin/tcsh, \
/usr/bin/rsh, /usr/local/bin/zsh

Also, (b) One entry that allows drew, smithgr and jimlane to kill jobs and reboot the machines in the student lab. Is that correct???

User_Alias StudentAdmins = drew, smithgr, jimlane, % operator
StudentAdmins ALL = !/usr/bin/su, !SHELLS

Cmnd_Alias Kill= /usr/bin/kill
Cmnd_Alias REBOOT = /usr/sbin/reboot, /usr/sbin/fastboot


Thank you in advance
 
Old 06-23-2008, 01:30 PM   #2
cmnorton
Member
 
Registered: Feb 2005
Distribution: Ubuntu, CentOS
Posts: 585

Rep: Reputation: 35
Two ways to access sudoers

1) sudo visudo

2) sudo -i
vi sudoers

First way is cleaner.

Last edited by cmnorton; 06-23-2008 at 01:30 PM. Reason: Add steps numbers.
 
  


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
Can't create LDAP entries with phpldapadmin dlublink Linux - Networking 6 12-12-2007 03:41 AM
How to create persistent entries in /dev? PsychosisNode Linux - General 3 12-16-2005 11:57 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 05:03 PM
Entries for sudoers configuration file Hikito Linux - Newbie 5 09-17-2004 12:42 PM
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 09:09 AM.

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