Andrew Ziem wrote:
> Petre Scheie wrote:
>> Andrew Ziem wrote:
>>   
>>> Petre Scheie wrote:
>>>     
>>>> Andrew Ziem wrote:
>>>>   
>>>>       
>>>>> Petre Scheie wrote:
>>>>>     
>>>>>         
>>>>>> Andrew Ziem wrote:
>>>>>>   
>>>>>>       
>>>>>>           
>>>>>>> Petre Scheie wrote:
>>>>>>>     
>>>>>>>         
>>>>>>>             
>>>>>>>> Could you elaborate on how your script works?  I tried it, using your 
>>>>>>>> instructions, but 
>>>>>>>> the login screen just says "User /usr/bin/autologin.pl| will login in 
>>>>>>>> 30 seconds" and 
>>>>>>>> when the 30 seconds runs out, the X server just restarts.
>>>>>>>>   
>>>>>>>>       
>>>>>>>>           
>>>>>>>>               
>>>>>>> Which version of GDM?  While 2.12 worked fine, there has been a nasty
>>>>>>> autologin/timed login bug starting in GDM 2.14.0.  I wrote a patch for
>>>>>>> the timed login which I think made it in for GDM 2.16.2.
>>>>>>>
>>>>>>> http://bugzilla.gnome.org/show_bug.cgi?id=340148
>>>>>>>
>>>>>>>
>>>>>>>     
>>>>>>>         
>>>>>>>             
>>>>>> Thanks Andrew.  As it turns out, the problem was a typo in my 
>>>>>> autologin.pl script. 
>>>>>> However, with GDM, the script is run for all client machines, and those 
>>>>>> that aren't set 
>>>>>> up for autologin just restart the client's X server, which works but is 
>>>>>> annoying to look 
>>>>>> at.  Do you know if there is any way in GDM  to set the autologin so 
>>>>>> only specified 
>>>>>> client machines even try to autologin?  With KDM I think this is 
>>>>>> possible (haven't tried 
>>>>>> it), but the greeter in KDM seems broken since any changes I make to 
>>>>>> that don't show up 
>>>>>> at the login screen.
>>>>>>
>>>>>>   
>>>>>>       
>>>>>>           
>>>>> Hi Peter,
>>>>>
>>>>> I basically use the same method described here on the wiki.  The login 
>>>>> script checks the hostname, and if it's an undesired hostname, it 
>>>>> returns nothing.   When the script returns nothing, GDM should disable 
>>>>> the timed/automatic login systems. 
>>>>>
>>>>> http://wiki.ltsp.org/twiki/bin/view/Ltsp/WorkInProgress#Public_and_private_use_of_the_wo
>>>>>
>>>>>     
>>>>>         
>>>> My script does more or less the same thing, though it's not as elaborate.  
>>>> At the login 
>>>> screen I see a line in the greeter that says "User /usr/bin/autologin.pl| 
>>>> will login in 
>>>> X seconds".  If it's a machine that should autologin, it does so; if it's 
>>>> a machine that 
>>>> should not autologin, it appears autologin.pl still runs but returns an 
>>>> invalid ID, and 
>>>> so then the greeter resets and it appears that the X server may be 
>>>> resetting as well, 
>>>> and then it repeats the process.  What I'd like is for the autologin.pl 
>>>> script to not 
>>>> even run for those client machines that aren't setup for autologin,  Is 
>>>> this possible 
>>>> with GDM?
>>>>   
>>>>       
>>> Welcome to Gnome bug 340148.  Annoying, isn't it?  :)  That's exactly 
>>> the problem for which I provided a patch, so either upgrade GDM to a 
>>> patched version or apply the patch yourself.
>>>
>>>
>>> Andrew
>>>     
>> Okay, I just read the bug report (actually meant to do so yesterday when you 
>> first sent 
>> the link, but I had to leave work suddenly and forgot about it).  So, it 
>> sounds like 
>> your patch fixes the cosmetics of the greeter saying 'User 
>> /usr/bin/autologin.pl| will 
>> login in X seconds", but doesn't fix the more fundamental problem that 
>> autologin 
>> shouldn't even be attempted on clients that don't have a config for it on 
>> the server, 
>> correct?  That is, as you say in the bug report, GDM shouldn't even be 
>> trying to 
>> autologin staff machines, just those specified (the public clients), right?
>>
>> BTW, thanks for all your effort with Cameron and dealing with the problem so 
>> far.
>>   
> In the end, I fixed both the cosmetic and the functional problems, so 
> now that timed login should be 100% OK, the remaining issue may be the 
> automatic login which I have not even tested.
> 
> 
> 
> Andrew
> 
I must have done something wrong.  I got your patch from the gnome bugzilla, 
installed 
the gdm SRPM, applied your patch, ran rpmbuild to make a new binary RPM, 
installed that 
with --force --replacefiles, rebooted the server, rebooted the client, and...I 
get the 
same behavior as before, where I see 'autologin.pl| will login in X seconds' 
and then it 
tried to login, fails, and loops back to the login screen, and repeats the 
whole process 
again.  I didn't get any errors when applying your patch, nor were there any at 
the end 
of rpmbuild, so I'm not sure what I missed.  Is there an existing patched 
version somewhere?

Petre

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_____________________________________________________________________
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