Difference between revisions of "Ubuntu HPC NIS server setup on master node"
From Notes_Wiki
m |
m |
||
Line 36: | Line 36: | ||
#:: cd /var/yp | #:: cd /var/yp | ||
#:: make | #:: make | ||
#:: systemctl restart nis | |||
#:</pre> | #:</pre> | ||
Line 41: | Line 42: | ||
In future whenever there is any change to /etc/passwd, /etc/group, /etc/shadow etc. (eg new user is added, user password is changed) then we need to run below command to update NIS database with latest information | In future whenever there is any change to /etc/passwd, /etc/group, /etc/shadow etc. (eg new user is added, user password is changed) then we need to run below command to update NIS database with latest information | ||
<pre> | <pre> | ||
make -C /var/yp | make -C /var/yp; systemctl restart nis | ||
</pre> | </pre> | ||
'''New user creation related steps are properly covered at [[Ubuntu HPC Create new user]]''' | '''New user creation related steps are properly covered at [[Ubuntu HPC Create new user]]''' |
Latest revision as of 06:43, 24 May 2023
Home > Ubuntu > HPC setup with openpbs and openmpi > NIS server setup on master node
- Install NIS packages and give nis domain name
- apt -y install nis
- During installation enter private domain name for NIS
- Configure this server as NIS master server by editing '/etc/default/nis' and updating below two parameter values:
- NISSERVER=master
- NISCLIENT=false
- Disable access to everyone and Allow NIS server access to sepecific subnet by editing '/etc/ypserv.securenets' as:
- 255.255.255.0 <private-network-address>
- #0.0.0.0 0.0.0.0
- Initiate NIS database using
- /usr/lib/yp/ypinit -m
- When prompted with 'When you are done with the list, type a <control D>.', press 'Ctrl+D'.
- Confirm 'y' on 'Is this correct? [y/n: y' prompt.
- Restart NIS service
- systemctl restart nis
- systemctl enable nis
- Create user with home folder under /export/home
- useradd -m -d /export/home/user1 -s /bin/bash user1
- passwd user1
- Update NIS user database
- cd /var/yp
- make
- systemctl restart nis
In future whenever there is any change to /etc/passwd, /etc/group, /etc/shadow etc. (eg new user is added, user password is changed) then we need to run below command to update NIS database with latest information
make -C /var/yp; systemctl restart nis
New user creation related steps are properly covered at Ubuntu HPC Create new user
Home > Ubuntu > HPC setup with openpbs and openmpi > NIS server setup on master node