0

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?

Lothar_Grimpsenbacher
  • 1,677
  • 3
  • 19
  • 29

1 Answers1

2

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.

EEAA
  • 109,363
  • 18
  • 175
  • 245