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.

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

2 Answers 2

up vote 1 down vote accepted

You should check PAM.

Resurrected link (from archive.org)

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.