Ubuntu HPC Create new user

From Notes_Wiki
Revision as of 06:40, 24 May 2023 by Saurabh (talk | contribs) (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...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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:

  1. Create user using:
    useradd -m -d /export/home/user3 -s /bin/bash user3
    passwd user3
  2. 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
  3. 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
  4. Update NIS database using root user on master node:
    make -C /var/yp
  5. Reboot all compute nodes
  6. Validate user details on compute node using:
    getent passwd user3
    The home folder for user3 should properly show as /export/home/user3
  7. 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
  8. (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