Adding Users
When adding users, you will want the userids, groupid, and usernames to be consistent on all nodes. Before adding users, make sure your NFS shares are working properly.
Master node
Not all Linux distributions require this, but it is usually a good idea to explicitly add a group for each of your users so you can specify the groupid explicitly. For convenience, we have it match the userid for each user:
As we did for root, ssh keys can be created for each user. Since the authorized_keys file is located on global storage, adding the ssh key to that file will allow passwordless login to each of the compute nodes.
To test this, you should be able to use pdsh to run commands (e.g. 'hostname') on each node once you have users set up on each of the compute nodes.
Compute Nodes
Add a group first, with gid consistent with that on the master.
On the compute nodes, you will want to avoid any interaction since pdsh does not handle interactive requests well. Since the home directories are mounted from the master node, you will not create them when creating users on the compute nodes. Once users are created, we will set up ssh keys for internode communication, so passwords are not needed.
Note that the quotes around "George Jetson" are escaped. This prevents them from being interpreted during execution of the pdsh command on the local node (master in this case), but they will be interpreted during execution of the adduser command on the remote nodes.
Last updated