Solution: GDM Auto Remote Login



Hi All

After a few hours of reading the GDM source code, I've worked out how to
do remote terminal logins.

After playing with the %h command, ie 'AutomaticLogin=term%h'
I dedicated that it was not going to work, it kept added :0 to the end of
the hostname. Also it would be nice to adjust my script below to only do
autologin for a listed set of terminals.

Autologin is great for internet cafe and sites where users are not members
of your organization.

I'm using autologin for a internet cafe using win4lin.

--- gdm-conf ---
[daemon]
AutomaticLoginEnable=true
AutomaticLogin=/usr/bin/autologin.sh|
TimedLoginEnable=true
TimedLogin=/usr/bin/autologin.sh|
TimedLoginDelay=30

[security]
AllowRemoteAutoLogin=true
-- end ---

--- autologin.sh ---
#!/bin/bash
HOSTNAME=`echo ${DISPLAY} | cut -f1 -d: | awk -F . {' print $1 '}`
echo $HOSTNAME
exit 0
--- end ---

Cheers
--
Mike OConnor
Service to Youth Council Inc
moconnor syc net au






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