Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Sometimes I have friends in my house that want use my computer. How can they use a guest account without typing a password?

share|improve this question
up vote 4 down vote accepted

There will be a guest account by default.Try clicking your username at the top-right corner and activate "Guest Session" under there. Also see the posts below,

Passwordless Guest Account

Creating a Guest Account

share|improve this answer

Method 1

user@ubuntu:~$ sudo adduser guest
user@ubuntu:~$ sudo passwd -d guest

This will add a user called "guest", then delete her password. You can log in from both the standard getty login prompt and graphical login managers like GDM. This works for me on Ubuntu 10.10.

However, apparently this doesn't work for some people using Ubuntu. Thus:

Method 2

  1. Make a user.
  2. Open /etc/shadow: gksudo gedit /etc/shadow
  3. Find the line that starts with the user you just made. Notice the line has multiple fields separated by colons.
  4. Change the second field to: U6aMy0wojraho. In my case:



  5. Save the file, log out, and try your new password-less account.

The origin of this method is from the Ubuntu livecd. The default user (ubuntu) requires no login password. If you look at /etc/shadow on the livecd, U6aMy0wojraho is the encrypted form of the magic password used. I explain this to emphasize this is not a general linux solution, but something specifically Ubuntu.

share|improve this answer
this can be done with single command: useradd -m -p U6aMy0wojraho guest – STX_user3581226 May 5 at 7:53

Create a new user, without administration access, then click in: "No passwd at login". This may solve your problem, but you can log in, and at your name (at right up): Guest-session.

share|improve this answer

I just found this guide that uses the guest-session instead of creating a user. A guest-session has a higher security settings by default, doesn't allow access to filesystem files on nautilus and all files are deleted upon logout since they're stored on /tmp.

share|improve this answer
Obligatory "Its encouraged to post the substance of a link in the body of the answer, so as to atleast prevent potential and enevitable link-rot" comment. :) – ThorSummoner Jan 22 at 7:14

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.