Use something like this as your /etc/X11/Xsession (/etc/X11/xdm/Xsession
on redhat 9) 
file:

#!/bin/bash

#Commands to run always
xscreensaver-command -exit


#Detect who is trying log in
USER=`whoami`
case $USER in
        root) 
                exit
        ;;
        *)
#commands to set up a users desktop here
#examples could be: startkde or gnome-session etc. 
#All commands must be run in the background except the last one
#when that command exits, the user is logged out.
#If the last command is a script, it must be called with exec command

        xscreensaver&
        busymouse&
        icewm
        
        ;;
        esac
#End script Xsession

And make sure it is world executable.

Ciao
A.J.
On Wed, 2003-10-29 at 15:54, Julius Szelagiewicz wrote:
> On Wed, 29 Oct 2003, Julien Rennard wrote:
> > I want to know if it's possible to disable root login on clients using
> > xdm.
> > I had 'xlogin.Login.allowRootLogin=false' line in /etc/X11/xdm/Xresource
> > file but xdm (of course restarted) don't seems to mind about it.
> > Any ideas ?
> Julien,
>       on most UNIX system this is controlled by /etc/securetty file. The
> entries in it, one per line, specify which tty devices are allowed root
> login. My /etc/securetty on HP-UX system has one line only:
> /dev/console, that takes care of it.
>       I've just tried it on my test ltsp server and i can still log in
> as root! drat! now i want to know how to disable it too. julius
> 
> 
> 
> -------------------------------------------------------
> This SF.net email is sponsored by: SF.net Giveback Program.
> Does SourceForge.net help you be more productive?  Does it
> help you create better code?   SHARE THE LOVE, and help us help
> YOU!  Click Here: http://sourceforge.net/donate/
> _____________________________________________________________________
> Ltsp-discuss mailing list.   To un-subscribe, or change prefs, goto:
>       https://lists.sourceforge.net/lists/listinfo/ltsp-discuss
> For additional LTSP help,   try #ltsp channel on irc.freenode.net
-- 
"He was the most civilized man she had ever met. Not a gentleman, thank
goodness, but a gentle man." - Terry Pratchet, The Fifth Elephant

A.J. Venter
DireqLearn Tech Guru
www.direqlearn.org
www.silentcoder.cjb.net (personal site)




-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive?  Does it
help you create better code?   SHARE THE LOVE, and help us help
YOU!  Click Here: http://sourceforge.net/donate/
_____________________________________________________________________
Ltsp-discuss mailing list.   To un-subscribe, or change prefs, goto:
      https://lists.sourceforge.net/lists/listinfo/ltsp-discuss
For additional LTSP help,   try #ltsp channel on irc.freenode.net

Reply via email to