Difference between revisions of "OpenHPC:Setting up Users"
Jump to navigation
Jump to search
| (One intermediate revision by the same user not shown) | |||
| Line 27: | Line 27: | ||
useradd knltest | useradd knltest | ||
passwd knltest | passwd knltest | ||
| − | wwsh | + | 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 | ||
| + | # Another quick way: | ||
| + | [root@sky-head ~]# wwsh file resync passwd shadow group | ||
| + | [root@sky-head ~]# pdsh -w s[02-10] /warewulf/bin/wwgetfiles | ||
| + | |||
| + | |||
</syntaxhighlight> | </syntaxhighlight> | ||
Latest revision as of 16:02, 31 August 2017
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.confIf 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,groupOk, 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
# Another quick way:
[root@sky-head ~]# wwsh file resync passwd shadow group
[root@sky-head ~]# pdsh -w s[02-10] /warewulf/bin/wwgetfiles