On Wed, Mar 10, 2004 at 08:07:12AM +0530, Sudev Barar wrote:
> I am confused at the format of sudoers file. Which of following is the
> following correct for allowing a particular user run shutdown command:
> 1. USERNAME  ALL=(ALL)        ALL

User USERNAME, logging in from any machine, can run any command on
this server as any user.

> 2. USERNAME  localhost=/sbin/shutdown -h now

User USERNAME, logging in from localhost only, can run /sbin/shutdown
-h now on this server, only as root.

That's all to it. Read the man page of sudoers for more details.

Binand

-- 
[EMAIL PROTECTED] root]# uptime
11:55am  up 58 days,  4:49,  2 users,  load average: 1023.78, 419.92, 158.90


-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
_______________________________________________
linux-india-help mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/linux-india-help

Reply via email to