How do I make a User login shutdown my box?

Vipul Ramani linux2000in at gmail.com
Thu Sep 30 08:43:27 UTC 2004


Cheers,

 Create shutdown.allow at /etc/ and insert only user name who want to
do make sys shut down.




On Wed, 29 Sep 2004 13:15:54 +0100, Stuart Halliday
<stuarth at ecs-tech.com> wrote:
> > Contrary to all the other advice you've received, the cleanest way to
> > have done this would be to read the man pages on pam_console (8) ,
> > pam_console_apply (8), and console.apps (5).  Proper settings will
> > allow users logged in on the console (and only on the console) to
> > simply shut down the machine with no need for sudo or any other
> > rigamarole.  This will also save you from mischief makers who could ssh
> > into a machine while someone else is using it and then shut it down on
> > them.
> 
> 
> Thank you for your (and other peoples) kind advice. But this isn't what I wanted.
> I wanted a particular user logon action to shut it down. Nothing more and nothing less.
> 
> I've got ppl here who've never seen a Linux desktop and I don't want to confuse them with multiply actions as this action should only be used in a emergency. :-)
> 
> As I've already posted, I've managed to get this issue resolved and I'm a happy bunny.
> 
> Thanks for your time. :-)
> 
> 
> 
> --
> redhat-list mailing list
> unsubscribe mailto:redhat-list-request at redhat.com?subject=unsubscribe
> https://www.redhat.com/mailman/listinfo/redhat-list
> 



-- 
Vipul Ramani
linux2000in at gmail.com
linux2000in at yahoo.com
~~~~~We Know HOW NetWorkS ~~~~~




More information about the redhat-list mailing list