On Mon, 15 Nov 1999, Kalaev, Maxim wrote:

> I have a silly question - 
> How can I cause    shutdown   to not
> ask for password when I run it as non-root?

a comment, and a solution below:

first, i'd advise against doing such a thing. you can always hit
ctrl+alt+delete and have your machine rebooted, if you sit by the console.
and you do not want to normally allow every user to reboot your system
(even if you have no users, a naive bug that allows remote users to launch
commands on your linux as user 'nobody' would allow rebooting.

after this warning, here is how to do it if you stil wish to. the solution
lies with PAM (i assume that your system ias redhat based..). look at the
file /etc/pam.d/halt - it looks like this:

#%PAM-1.0
auth       sufficient   /lib/security/pam_rootok.so
auth       required     /lib/security/pam_console.so
auth       required     /lib/security/pam_pwdb.so
account    required     /lib/security/pam_permit.so


first, make a backup copy of the original file.
next, comment out the line with 'pam_pwdb' by prepending a '#' sign at the
beginning of the line.
finally, check that this works.

guy

"For world domination - press 1,
 or dial 0, and please hold, for the creator." -- nob o. dy



=================================================================
To unsubscribe, send mail to [EMAIL PROTECTED] with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail [EMAIL PROTECTED]

Reply via email to