Difference between revisions of "Ubuntu HPC Create new user"
From Notes_Wiki
(Created page with "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: #:<pre> #:: useradd -m -d /export/home/user3 -s /bin/bash user3 #:: passwd user3 #:</pre> #Create SSH key and configure them as authorized using: #:<pre> #:: su - user3 #:: ssh-keygen #:: cat ~/.ss...") |
m |
||
Line 22: | Line 22: | ||
#:<pre> | #:<pre> | ||
#:: make -C /var/yp | #:: make -C /var/yp | ||
#:: systemctl restart nis | |||
#:</pre> | #:</pre> | ||
# Reboot all compute nodes | # Reboot all compute nodes |
Latest revision as of 06:43, 24 May 2023
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