-
Notifications
You must be signed in to change notification settings - Fork 9
User Management
rondale-sc edited this page Apr 19, 2013
·
1 revision
We use a chef cookbook named chef-user, which is way for you to specify how users are created. The first job start
has is to create json files contain information about the host and pair users. These files are read by chef-user and used to create users on your EC2 instance.
It does the following for each user specified:
- uses
adduser
to build the user - builds their
.ssh
file and changes ownership to that user - adds all of their public SSH keys to the
~/.ssh/authorized_keys
file (via GitHub's API)
We also create a pairing
user which we'll use to connect the two users over TMUX. We create this third user in order to ensure that the user that owns the TMUX session doesn't have sudo.