Hello,

I got your e-mail from the shutdown man page. Sorry if your not the correct 
person to e-mail.

I want to allow non-root users to shutdown and reboot the PC. According to 
the shutdown man page :

       If shutdown  is  called with the -a argument (add this to the
       invocation of shutdown in /etc/inittab), it checks to  see
       if  the file /etc/shutdown.allow is present.  It then com�
       pares the login names in that file with the list of people
       that   are   logged   in   on   a  virtual  console  (from
       /var/run/utmp). Only if one of those authorized  users  or
       root  is  logged  in,  it  will proceed. Otherwise it will
       write the message

       shutdown: no authorized users logged in

       to the (physical) system console. The format of /etc/shut�
       down.allow is one user name per line. Empty lines and com�
       ment lines (prefixed by a #) are allowed.

1)  The /etc/shutdown.allow appears to be ignored completely. The following 
is output to the console 'shutdown: must be root'

2) The /etc/inittab entry for capturing Ctrl-Alt-Del has no -a option, but 
any user can use Ctrl-Alt-Del to shutdown / reboot the machine. (This option 
is unsatisfactory. Using IceWM Ctrl-Alt-Del produces a Reboot / Shutdown / 
Lock Screen / Logout etc dialog. The Reboot / Shutdown don't work !!!)

Please could you (or someone on the Cooker list) tell me what I'm doing 
wrong, what should be in /etc/inittab and how to allow non root users to use 
/sbin/shutdown to reboot / shutdown the PC.

Thanks,
Owen

Reply via email to