How to enable no password login in Ubuntu

If you want to enable a password less account in Gnome for your family/friends who have access to your computer. Please note that this is different than not typing a password (autologin) . It is just a “password less account”

Create a user (system/administration/user and groups)

username: guest
real name: guest or whatever you want to display in the graphical greeter later on
profile: desktop user (DO NOT use administrator)
password: password

click ok and close the users and groups tool.

Remove the password for the guest user

open a terminal

sudo passwd -d guest

Authorize login with no passwords in gdm

sudo sed -i ’s/#PasswordRequired=false/PasswordRequired=false/’ /etc/gdm/gdm.conf

Authorize login with no passwords in pam

sudo sed -i ’s/nullok_secure/nullok/’ /etc/pam.d/common-auth

You can now log in with your guest user with no password.

Tags: , , , , , ,

This entry was posted on Tuesday, July 22nd, 2008 at 2:03 pm and is filed under gnu/linux. You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.

Leave a Reply

You must be logged in to post a comment.