OpenHPC:Setting up Users

From Define Wiki
Revision as of 11:34, 16 May 2016 by David (talk | contribs)
Jump to navigation Jump to search

Setup a user within OpenHPC

Assuming the /etc/passwd and /etc/group files have been added to the cluster file sync list:

Verify:

[root@knl-head ~]# wwsh file list
dynamic_hosts           : -rw-r--r-- 0   root root              916 /etc/hosts
group                   : -rw-r--r-- 1   root root              927 /etc/group
ifcfg-ib0.ww            : -rw-r--r-- 1   root root              133 /etc/sysconfig/network-scripts/ifcfg-ib0
munge.key               : -r-------- 1   munge munge           1024 /etc/munge/munge.key
network                 : -rw-r--r-- 1   root root               20 /etc/sysconfig/network
passwd                  : -rw-r--r-- 1   root root             2088 /etc/passwd
shadow                  : ---------- 1   root root             1106 /etc/shadow
slurm.conf              : -rw-r--r-- 1   root root             2245 /etc/slurm/slurm.conf

If they are not, then make sure you followed the installation steps! And you missed these steps:

  wwsh file import /etc/passwd
  wwsh file import /etc/group
  wwsh provision set --fileadd passwd,group

Ok, setup a user as standard

  useradd knltest
  passwd knltest
  wwsh filesync

# NOTE: it'll take a few minutes to sync, or you can immediately sync using: 
  pdsh -a /warewulf/bin/wwgetfiles