Hello Sudev, To shutdown a paritcular machine (e.g: abc.kt.com) using one user (e.g kanchana), configure the sudoers file as follows.
E.g kanchana abc.kt.com=/sbin/shutdown -h now (as you told in 2nd option, i'm not sure whthere localhost will work) HTH. Let me know hot it works. Regards, -Kanchana > 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 > 2. USERNAME localhost=/sbin/shutdown -h now > > Can any one send a snip of their sudoers file for one command? > > -- > Sudev Barar > > Learning Linux > > > > > ------------------------------------------------------- > 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 > > --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.605 / Virus Database: 385 - Release Date: 3/1/2004 ------------------------------------------------------- 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
