cdhgee |
08-23-2005 12:34 PM |
/etc/shutdown.allow being ignored
I want to be able to do
from an unprivileged account (ie as a non-root user). Reading the shutdown man page, it says I can do this by listing the user(s) I want to be permitted to shutdown the machine by putting each username on a separate line in /etc/shutdown.allow, and using the -a argument to shutdown. I have tried this, and it doesn't do anything.
I've got it as follows:
Code:
[root@malvern etc]# ls -al shutdown.allow
-rw-r--r-- 1 root root 6 Jul 27 22:54 shutdown.allow
[root@malvern etc]# cat shutdown.allow
david
[root@malvern etc]#
And what happens is:
Code:
[david@malvern ~]$ shutdown -a -h now
shutdown: you must be root to do that!
Can anyone suggest any reason why this shouldn't be working, or have I missed something obvious?
|