Re: Timed login for different users
- From: SteveG <steveg nevets com au>
- To: Gdm Mailing List <gdm sunsite dk>
- Subject: Re: Timed login for different users
- Date: Fri, 11 Apr 2003 11:37:39 +1000
Rafael - this works beautifully - I had spent ages trying to figure it out
Really (really) appreciated
I will also post to the LTSP site under your name - thanks again
Rafael Avila de Espíndola wrote:
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
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]