Super User is a question and answer site for computer enthusiasts and power users. 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 have more than one password simultaneously attached to a login account in Linux?

I'd like to be able to add a temporarily-authorized user to an account on my web server, but don't want to have to change the login afterwards.

Is this possible?

Even cooler would be if this could be done with a timer of some kind so the temporary password would auto-die after, say, 24 hours.

share|improve this question
up vote 4 down vote accepted

PAM can do all sorts of awesome auth stuff. That list is probably a bit out of date, so have a look around.

share|improve this answer
It is not: PAM updates very rarely, and why authentication framework must be updated often? – whitequark Jun 15 '10 at 5:18
The modules, not the framework... – Ignacio Vazquez-Abrams Jun 15 '10 at 5:28
I'm looking with a new issue from AskUbuntu (server) but the link is dead with a 404 :-( – hexafraction Jun 19 '12 at 21:43
I suggest changing the link to… – hexafraction Jun 19 '12 at 21:49

OPIE is probably something you would like for your needs. Also, remember that permissions are set based on the User ID, not the login name. So, you can share the same UID of someone else without sharing the same password, login name, home directory and login shell (as well as any other place that let you configure your system without the login shell). PAM as also a very flexible (but complex) system that you can configure to do a lot of weird stuff (like allowing login only from some place at some time, or dual-factor authentication).

share|improve this answer
the duplicated uid is not a direction I'd considered yet - thanks :) – warren Jun 20 '12 at 14:07

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .