[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: system shutdown from xdm

I find that I often need to shutdown as a normal user ('cos I turn my
computer off every night), but rarely need to reboot.  Thus I have set
the behavior of the <ctrl><alt><del> keys to shutdown, rather than
reboot.  This is done with the following in /etc/inittab:
	# What to do when CTRL-ALT-DEL is pressed.
	ca:12345:ctrlaltdel:/sbin/shutdown -t1 -a -h now
(I think that by default you will have the above line, but with '-r'
instead of '-h').

This works for me, but I don't use xdm, so I cannot comment on whether
it traps <ctrl><alt><del> or not.  If it does then that is just another
reason why, IMHO, xdm is pants.


Dave Whiteley wrote:
> In the olden days I worked with a PDP11/44 running Unix.  I did not know
> a lot about Unix, but I was trusted to  shut the system down by logging
> is as a special user "shutdown".
> Now I am playing with my own linux systems, and I want to create a
> similar user to give my Wife an easy way to shut down the PC.
> I have created the user, and logging in as "shutdown"  from a non-X
> console works well. However, now that xdm has been installed I have
> problems.
> I have made the user "shutdown"'s shell a script which calls the
> shutdown command. However xdm does not seem to run this script.
> Is the whole idea a bad one?   If not, what am I doing wrong.
> Dave Whiteley
> d.l.whiteley@ee.leeds.ac.uk
> --
> Unsubscribe?  mail -s unsubscribe debian-user-request@lists.debian.org < /dev/null

Reply to: