Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

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

4 Answers 4

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:

    guest:$6$m4CpcgBw$i9XLGaUNToClOJ1X5Grug/COUjlkhoPv1:15048:0:99999:7:::

    becomes:

    guest:U6aMy0wojraho:15048:0:99999:7:::
    
  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

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

Your Answer

 
discard

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.