In article <[EMAIL PROTECTED]>, Sebastian =?iso-8859-1?Q?Pad=F3?= <[EMAIL PROTECTED]> wrote: >Hi all, > >I run xdm as my x login manager and I would like to >be able to reboot and halt from it (like kdm allows it). > >My idea was as follows: I created two new users, reboot >and halt, whose .xsession only contained >"/sbin/shutdown -r -a now" and "/sbin/shutdown -h -a now" >respectively. >I also created the file /etc/shutdown.allow with both >users in it, as described in the shutdown man page.
You misread the shutdown manual page. That is absolutely not what the /etc/shutdown.allow file is for. >Is there a more, say, canonical way of achieving what I want? >Can I modify the .xsession in a particular way? Install and configure 'sudo' so that your halt and shutdown users can call shutdown as root. Mike. -- People get the operating system they deserve.