On Fri, 11 Apr 2003 08:19:16 +1000 SteveG <steveg nevets com au> wrote: > Is it possible to configure gdm to allow different timed login usernames > depending on current hostname. I am using LTSP and would like to login > the clients automatically. > > If this is not currently possible, where (ie which file) within the > source of gdm is the username collected for autologin ? > > Thanks Yes, you can tel gdm to run a program to obtain the username. If you want that the username be the same as the host name, you may do: /etc/gdm/gdm.conf: AutomaticLoginEnable=true AutomaticLogin=/usr/local/sbin/autologin.sh| TimedLoginEnable=true TimedLogin=/usr/local/sbin/autologin.sh| TimedLoginDelay=30 /usr/local/sbin/autologin.sh: #!/bin/bash HOSTNAME=`echo ${DISPLAY} | cut -f1 -d: | awk -F . {' print $1 '}` if [ "x$HOSTNAME" != "xlocalhost" ] ; then echo $HOSTNAME fi
Attachment:
pgpoKZXVM9Q1i.pgp
Description: PGP signature