Difference between revisions of "OpenHPC:Setting up Users"

From Define Wiki
Jump to navigation Jump to search
Line 27: Line 27:
 
   useradd knltest
 
   useradd knltest
 
   passwd knltest
 
   passwd knltest
   wwsh filesync
+
   wwsh file sync
  
 
# NOTE: it'll take a few minutes to sync, or you can immediately sync using:  
 
# NOTE: it'll take a few minutes to sync, or you can immediately sync using:  
 
   pdsh -a /warewulf/bin/wwgetfiles
 
   pdsh -a /warewulf/bin/wwgetfiles
 
</syntaxhighlight>
 
</syntaxhighlight>

Revision as of 20:57, 7 September 2016

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 file sync

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