Want to set a guest session password for login. How do you do this after skipping it at OS install?

  • Yeah, as people have said, it might not be a good idea. If you told us why you want a password on it we could give you the best solution to your problem, but it's up to you. Dec 9, 2012 at 21:21
  • 1
    Thanks. Your reply is appreciated. I thought I could use the guest account to limit others access to files, etc. I think now that the best solution is eliminate the guest and create a non-admin user account.
    – Tom
    Dec 9, 2012 at 23:14
  • If privacy is an issue you could look into encrypting your folders. askubuntu.com/questions/27911/… Dec 10, 2012 at 23:43

2 Answers 2



It might be to your advantage to find how the guest account is to be used.

Some important points are:

  • According to the outdated documentation for Guest user accounts for Ubuntu: 'A guest account allows visitors to use the computer system without login credentials.' So the whole point of the user is to have no password.

  • Ask far as I know, the guest account purges documents or files written into its home directory (which is actually in /tmp) after the session is terminated. This is shown in this comment by @andol.

  • Taking these things into accounts, primarily, the guest account should be used for:

    • Persons with no registered account on your computer
    • If you need to quickly access the internet or do something that will not need to be permanently stored.
    • To restrict use of your account and files by unknown user, but still allowing limited use.

So, now I think you can see that the Guest Account should not be used as a legitimate account for your computer, but like a Library or public computer: unless you have a USB or similar, you're files are as good as gone. Therefore, you should have no need to password-protect the guest account at all.

What should you do?

If I were you I would make a whole new account, depending on your intentions. If you were looking for an account that wouldn't show your files but could still be used by others (like a young sister) I would just create a new account.

Additionally, you could also make your own Guest Account and disable the one that came with Ubuntu 12.04 and later.

You can do this by following the steps on the Technology Windows & Linux website.

Alternatively, in theory, you could use the passwd command. I haven't tried this before, so its just a guess: but you would type either sudo passwd guest or passwd guest. It may not work, and I don't think it's a great idea because of the reasons I have listed above.

Good luck!

  • 2
    Thanks. I had the wrong idea of what a guest was. I'll remove the guest account and use a non-admin account instead to limit access to files, etc.
    – Tom
    Dec 9, 2012 at 23:11
  • Awesome, I'm glad I was able to help. If you feel my answer solved your problem most accurately, you should mark it so by clicking the check under the rating buttons. You can see how to in detail by checking out this question's answer. Thanks a bunch! Welcome to Ask Ubuntu too :)
    – Mochan
    Dec 10, 2012 at 5:35

You can use the passwd command. Open a terminal by pressing CTRL + ALT + T . Then type passwd and the user name. So it should be passwd guest

  • Thanks for your reply. I misunderstood the purpose of the guest account. Real solution seems to be - eliminate the guest account and create a second, non-admin user.
    – Tom
    Dec 9, 2012 at 23:18

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