shutdown.allow not working

Dear Frnds

I want to allow few users to reboot the machine from Console.I have altered the ctlaltdel line with -a flag in " inittab file " I have also created shutdown.allow file in /etc and putted some users there.

The problem is when i try to reboot with users except users in /etc/shutdown.allow , machine is rebooting.I want to restrict other users.

Please help me

Thank You

You can also edit the /etc/sudoers file and allow specific users to shutdown or reboot the system .Something like that .

## Allows members of the users group to shutdown this system
# %users  localhost=/sbin/shutdown -h now
1 Like