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

Is it possible to allow multiple passwords to log on to Ubuntu for the same user? I have also possibly considered having two users share a home folder, but I am not sure if that is safe. If anybody can provide guidance, that would be great.

share|improve this question
up vote 1 down vote accepted

You should check PAM.

Resurrected link (from

Original inspired from superuser answer.

share|improve this answer

Your Ubuntu user password doesn't need to be the same as your password elsewhere (e.g., for your email). Thus, two people who don't trust each other for everything may still be able to trust each other enough to share a user account and password.

If two users share the same account and the same login password, each could change the password to lock the other out from accessing the account. However, a user can always make configuration changes to his/her accounts to render it inoperable. This would be possible even if they logged in with different passwords. If you don't trust them enough to not deliberately (or accidentally) mess up the account for each other, then they need to have separate user accounts.

If you don't trust users enough to fully share an account (or you just want them to be able to have their own settings, their own files, their own space), you should instead have two accounts with access to shared resources (e.g., folders) as necessary.

share|improve this answer

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.