Ubuntu HPC Create new user
From Notes_Wiki
Home > Ubuntu > HPC setup with openpbs and openmpi > Create new user
Once HPC setup is done properly, to create any new user (eg user3) please use below steps:
- Create user using:
- useradd -m -d /export/home/user3 -s /bin/bash user3
- passwd user3
- Create SSH key and configure them as authorized using:
- su - user3
- ssh-keygen
- cat ~/.ssh/id_rsa.pub >> ~/.ssh/authorized_keys; chmod 600 ~/.ssh/authorized_keys
- Validate key based ssh within master node using
- su - user3
- ssh user3@<masternode>
- This should not ask password for the self ssh as user3 on master node
- Update NIS database using root user on master node:
- make -C /var/yp
- systemctl restart nis
- Reboot all compute nodes
- Validate user details on compute node using:
- getent passwd user3
- The home folder for user3 should properly show as /export/home/user3
- Validate key-less SSH to compute nodes from master node using:
- su - user3
- ssh user3@<compute> #This should not ask password, Do for all compute nodes
- (Optionally) Run test job as explained at Ubuntu HPC Execute parallel jobs using user3.
Home > Ubuntu > HPC setup with openpbs and openmpi > Create new user