Configure login prompt

A user login prompt is presented to the user by a display manager (DM) at the end of the booting process. The behavior and appearance of the login prompt can be configured by adjusting the display manager's settings.

LightDM

Trisquel 7 uses LightDM as its display manager. Users can edit the default Unity greeter's appearance by editing the following files.

  /usr/share/glib-2.0/schemas/90_trisquel.gschema.override
  /usr/share/glib-2.0/schemas/com.canonical.unity-greeter
The user must then issue the following command to generate a new gschemas.compiled file, which will put the changes in effect.
  sudo glib-compile-schemas /usr/share/glib-2.0/schemas/
Users can also add lines in /usr/share/lightdm/lightdm.conf.d/50-unity-greeter.conf that affect how LightDM behaves, such as enabling and disabling the user list, automatic logins, guest logins, etc.

LightDM has a good documentation on its website about the different things you might want to do with it. Here are some examples.

Hiding the user list

You can replace the user list with a simple login prompt with the following rules.

  [SeatDefaults]
  greeter-hide-users=true
  greeter-show-manual-login=true

Hiding the guest user login

LightDM displays a guest session by default. You can disable it with the following.

  [SeatDefaults]
  allow-guest=false

Automatic login

You can configure the system to log a certain user in by default with "autologin-user". If you also use "autologin-user-timeout", you can define a delay in seconds during which a normal login prompt is displayed. Any user activity will cancel the automatic login.

  [SeatDefaults]
  autologin-user=USERNAME
  autologin-user-timeout=delay
If you want to log in a guest user by default, use "autologin-guest" instead of "autologin-user".
  [SeatDefaults]
  autologin-guest=true

GDM

Trisquel 6's display manager was GDM. There is some documentation here.

Hiding the user list

To disable user list on login, press Alt + F2 when logged in and use the following command.

  sudo gconftool-2 -t bool -s /apps/gdm/simple-greeter/disable_user_list true

Autologin & timed login

These features can be controlled by editing /etc/gdm/custom.conf. E.g.
  [daemon]
  AutomaticLoginEnable=false
  AutomaticLogin=USERNAME
  #TimedLoginEnable=true
  #TimedLogin=USERNAME
  #TimedLoginDelay=20

Revisions

12/04/2014 - 19:49
lammi87
12/04/2014 - 20:43
lembas
08/06/2015 - 09:14
umdhlebe
12/26/2015 - 06:24
ovine