[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Shutdown by a user
On Sat, 8 Jul 2000, N Sakthivel wrote:
> Can any tell me how to allow a user to use /sbin/shutdown command.
> As user if I use /sbin/shutdown -h now
> The Answer is : Must be Super User
at least on redhat 6.0 systems, this can be controlled using PAM
(pluggable authentication modules). if you have a directory named
/etc/pam.d/ , there should be a file named 'shutdown' in it. according to
the definitions on this redhat 6.0 system, it checks that the user is
root. if not, it checks that the user is logged on to the console and can
type in a valid password (the user's own password). this lets any user
logged on to the console perform a system shutdown.
check if you have a similar file on redhat 5.0 . i know that on redhat 4.2
they haven't set up special authentication for shutdown.
guy
"For world domination - press 1,
or dial 0, and please hold, for the creator." -- nob o. dy
=================================================================
To unsubscribe, send mail to linux-il-request@linux.org.il with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail linux-il-request@linux.org.il