Server Fault is a question and answer site for system and network administrators. 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

I need to add a new user (and add them to an existing group) for basic authentication on many different servers. What's the fastest way to do this?

The slow, dull way would be to ssh in to a server, run the htpasswd command, manually edit the groups file to add them and then copy those files to the several dozen other servers I would need to add them to (hmmm... but there may be different users on certain servers so I will likely have to do the entire process from scratch on each one). There's got to be a better way (plus I don't want to do this each time I have to add someone). How would you do this?

share|improve this question
It's time to look into LDAP for authentication, e.g. 389-DS or Active Directory. – Michael Hampton Feb 1 '13 at 6:21
up vote 2 down vote accepted

The answer is the same for this as it is for innumerable other use cases like this: use a config management system like puppet or chef to manage and distribute these files.

share|improve this answer
I've periodically come across articles about these for ages. I guess it's time to try one out. – Lothar_Grimpsenbacher Feb 1 '13 at 6:32
It most certainly is. :) – EEAA Feb 1 '13 at 6:34

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.