unable to disable autologin
I have a strange problem. I installed Mandriva 2009 Spring yesterday. Its wonderful. Everything worked fine. But today when I booted, its autologging me! There was no such issues yesterday!
Apparently, I have not done anything to enable autologin. I just browsed net, configured my mail client, installed 2-3 packages with urpmi...thats all. Didn't even touch computer/desktop management module. How did it automatically got enabled today?
The other strange thing is if I go to System Settings -> Advanced -> Login Manager, all options are greyed out. There is no button to go to Adminstrator Mode! Ref. attachment.
Further I tried to search for kdm in /etc. Didn't find one there. Then got hold of kdm in /usr/share. Here kdm is present in two places, /usr/share/apps and /usr/share/config. I went to /usr/share/config/kdm/kdmrc and checked if anything related to AutoLogin is enabled. No, its not enabled there.
Then I found one /etc/sysconfig/autologin. In this file AUTOLOGIN=yes is the entry. I edited this (as root, ofcourse) as AUTOLOGIN=no, saved and rebooted. Guess what, its still autologging and when I opened the file its still AUTOLOGIN=yes! Something is overwriting this file. Whats happening? Is this a virus? I dont use any p2p clilents, I don't install much softwares apart from irssi, ttf-indic-fonts, thunderbird and gstreamer/xine codecs in any distro I try.
I can't login to GUI as root and there is no Administrator Mode in Login Manager. I can't find a correct file to edit to solve this autologin problem.
I tried in #mandriva, in mandriva forums, searched google and here in this forum too. Its mostly to use Login Manager to go to Administrator Mode and then check or uncheck autologin option. This is not working in my case.
How come there is no Administrator Mode button in Login Manager? And why /etc/sysconfig/autologin file is getting overwritten to 'yes'? Please can somebody help me? Apart from this Mandriva rocks!
Problem proper solved, doubts remain!
Ok, here is the update for those interested.
I had not gone through /usr/share/config/kdm/kdmrc properly. It ended like the following:
First time when I read the file I had only gone through the following:
# Greeter config for 1st local display
As the Autologin was commented out, I thought kdmrc file was ok and it had nothing to do with my autologin. When I went through the file again, I realized Autologin was indeed enabled and then disabled it. Now its working fine. The /etc/sysconfig/autologin is still 'AUTOLOGIN=yes' but apparently it is overrided by kdmrc file.
# Enable automatic login. USE WITH EXTREME CARE!
# Default is false
# If true, auto-login after logout. If false, auto-login is performed only
# when a display session starts up.
# Default is false
As for as my autologin problem was concerned, it is solved. But I still have unanswered questions.
a) How did all of a sudden autologin got enabled?
b) Why there is no Administrative Mode in Login Manager?