Tuesday, January 11, 2011

How can I change the default user shown in the login screen?

Well, the title is pretty much it.

When I start my system I always get the same user on the login screen (this is the original user created when the system was first installed). How can I change that so I won't have to type in the actual username I use everyday each time?

  • Go to (gdmsetup): System -> Administration -> Login Screen

    David B : In the `login as ... automatically` it only has one option - the current default user. My user isn't there!
  • Yep that is easy :

    Open the GDM custom configuration file :

    gksudo gedit /etc/gdm/custom.conf
    

    Should have a lot of comment and at the end look like this :

    [daemon]
    
    [security]
    
    [xdmcp]
    
    [gui]
    
    [greeter]
    
    [chooser]
    
    [debug]
    
    [servers]
    

    You'll have to add few lines under greeter like this :

    [daemon]
    
    [security]
    
    [xdmcp]
    
    [gui]
    
    [greeter]
    # If true show all the users, if false show the last connected users
    IncludeAll=false
    # User to always show in the user list
    Include=somebody,somebodyelse
    
    [chooser]
    
    [debug]
    
    [servers]
    

    Just replace "somebody,somebodyelse" by whatever you want, save the file and reboot and it should work.

    More info here : http://library.gnome.org/admin/gdm/2.32/gdm.html

0 comments:

Post a Comment