[Gllug] Poweroff madness
John HEARNS
john.hearns at cern.ch
Fri Jul 12 13:31:22 UTC 2002
Yet again proving that I'm totally out of the loop,
going gaga, and should be settled in a quiet corner
with a BBC micro to play with.
Someone pointed out on another mailing list I'm no
that on an FTP session, >!poweroff works.
Ulp.
I tried poweroff AS A NORMAL USER on a console
on a Redhat box - and sure enough it worked.
Can anyone please tell me the logic behind this?
Surely, SURELY the default should be to prompt for
the root password?
OK on a desktop - but on a big server?
The offending line is in /etc/pam.d/poweroff:
auth sufficient /lib/security/pam_rootok.so
auth required /lib/security/pam_console.so
#auth required /lib/security/pam_stack.so service=system-auth
account required /lib/security/pam_permit.so
(same for halt and reboot)
Yeah - I know. This is RTFM knowledge, and I'm behind the times.
--
Gllug mailing list - Gllug at linux.co.uk
http://list.ftech.net/mailman/listinfo/gllug
More information about the GLLUG
mailing list