xdm

Hi there.

This has been driving me crazy. I use xdm as my dm, it works as I want it too, except that when I press my created reboot or shutdown button, I do not get any messages on the screen saying that the computer is rebooting or shutting down. I would like to see this on the screen.

Here is my Xsetup file:

#!/bin/sh
#
# $Id$
#
# This script is run as root before showing login widget.

#xsetroot -solid rgb:8/8/8

hsetroot -fill /etc/X11/fluxbox/wallpaper/antiX.jpg

#--- set Shutdown/Reboot buttons
(
xmessage -buttons Shutdown:20,Reboot:21 "" ;
case $? in
20)
exec /sbin/poweroff;;
21)
exec /sbin/reboot;;
*)
echo "Xmessage closed on `date`";;
esac
)&

TIA

Edit: I should add that I use fluxbox wm with rox desktop.

0

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.

Disable root login xdm?

*bump*

No ideas anyone?

Ok here's another one. How do I disable root login at xdm login screen?

TIA

anticapitalista

"Philosophers have interpreted the world in many ways; the point is to change it."

xdm message

I suppose the problem is that your echo message is not being sent to the right place. That is, standard out is not the xdm screen.

xdm message

Matt thanks, so what do I do and how do I find out if it is the case?

TIA

anticapitalista

"Philosophers have interpreted the world in many ways; the point is to change it."

xconsole

You could try starting xconsole from Xsetup. Then in the case statement, do something like

echo "Powering down." > /dev/xconsole && exec /sbin/poweroff;;

xdm message

I'm using wdm, and the following works in /etc/X11/wdm/Xsetup_0:


xconsole -geometry 480x62+0-0 -daemon -notify -verbose -fn fixed \
-exitOnFail -file /dev/xconsole
echo "Debian is the best OS." > /dev/xconsole

xdm

How to disable root login:

Find the 'xdmrc' file which is either in a subdir of /etc or /usr/lib/X11; there should be an option to allow root to log on; just set it to 'no'.

Are you the same 'anti' of 'antix'?

xdm

pinniped,
there is no 'xdmrc' file anywhere. This is on debian netinstall that has been 'siduxed' to debian sid.
The same with a 'siduxed' Mepis 3.4.3 I use.

And, yes I am the anti of antiX.

anticapitalista

"Philosophers have interpreted the world in many ways; the point is to change it."

xdm

Hmmm... my ancient computer has 'xdmrc' but my newer one hasn't.

The only other thing I can suggest is to look at your PAM rules (assuming you use PAM) and set them to prevent root from logging into X.

Syndicate content