Password-less login on Ubuntu 9.10 (Karmic Koala)


I post the article here just in case that link won’t work any more in the future


I was looking to enable password-less login on Ubuntu Karmic for my children, so that they could just click their face from the username list to login. I eventually found how to do this on a very old thread on the Ubuntu forums.

In Karmic I noticed an option within Users and Groups “Don’t ask for password on login”, but the option was greyed out. Someone commented on this in bug 396459 on launchpad and mentions adding a group named “nopasswdlogin”. I tried this, and although it did allow me to select the option, the login window (known as GDM) still prompted for a password.

I then came across an old thread from 2005 on Ubuntu Forums, “GDM logging on locally without entering password?”, which I tried and amazingly it still worked. The only difference now is that in Karmic the location of the GDM config file has changed from /etc/X11/gdm to just /etc/gdm.

So here is how my /etc/pam.d/gdm looks, with the lines I added in bold:

auth requisite
auth required readenv=1
auth required readenv=1 envfile=/etc/default/locale
# the line below has been added specifically to allow selected users to log in via GDM without a password
# start
auth sufficient item=user sense=allow file=/etc/gdm/nopassusers.txt onerr=fail
# end
@include common-auth
auth optional
@include common-account
session [success=ok ignore=ignore module_unknown=ignore default=bad] close
session required
@include common-session
session [success=ok ignore=ignore module_unknown=ignore default=bad] open
session optional auto_start
@include common-password

And this is my /etc/gdm/nopassusers.txt:-


I then rebooted and my children could login with just one click.


  1. Leave a comment

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: