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.

But it does not work!
Reading the man page once more, I stumbled over the phrase:
> It then compares the login names in that file (shutdown.allow) 
> with the list of people that are logged in on a virtual console
>  (from /var/run/utmp)
I guess that is the problem, isn't it?: When I log in on xdm, I am not
logged in on a virtual console.

Is there a more, say, canonical way of achieving what I want? 
Can I modify the .xsession in a particular way?

I'm grateful for every trace..

Sebastian Pado

-- 
Charly was a chemist, but Charly is no more.
What Charly thought was H20 was H2SO4.

Reply via email to