bluefrog
June 5th, 2008, 05:38 AM
For those who want to enable a guest cybercafé style session (or windows guest style) in Ubuntu 8.04 Hardy.
There will be no need to do that in Intrepid Ibex as there will be a "native" guest session.
Scope of this HowTo
You want to enable a password less account in Gnome for your family/friends who have access to your computer.
This is different than not typing a password (autologin)
HowTo - by example
WARNING: Following this HowTo will most likely screw up your ability to create users on your system with the graphical tool "users and groups". I haven't found the way to revert to a working graphical tool and still not understand what is destroyed when changing what follows below.
BUT you will still be able to add users using the sudo adduser command.
Create a user (system/administration/user and groups)
You can put fancy characters in the real name but not in the username.
You are obliged to enter a password. We will get read of it afterwards.
example:
username: guest
real name: invité (or 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.
If you want a graphical greeter screen, select it in system/administration/login window [local tab] (example: human list)
James Dupin
There will be no need to do that in Intrepid Ibex as there will be a "native" guest session.
Scope of this HowTo
You want to enable a password less account in Gnome for your family/friends who have access to your computer.
This is different than not typing a password (autologin)
HowTo - by example
WARNING: Following this HowTo will most likely screw up your ability to create users on your system with the graphical tool "users and groups". I haven't found the way to revert to a working graphical tool and still not understand what is destroyed when changing what follows below.
BUT you will still be able to add users using the sudo adduser command.
Create a user (system/administration/user and groups)
You can put fancy characters in the real name but not in the username.
You are obliged to enter a password. We will get read of it afterwards.
example:
username: guest
real name: invité (or 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.
If you want a graphical greeter screen, select it in system/administration/login window [local tab] (example: human list)
James Dupin