Ubuntu HPC NIS server setup on master node
From Notes_Wiki
Revision as of 05:26, 23 February 2023 by Saurabh (talk | contribs) (Created page with "Home > Ubuntu > HPC setup with openpbs and openmpi > NIS server setup on master node #Install NIS packages and give nis domain name #:<pre> #:: apt -y install nis nscd #:</pre> #: During installation enter private domain name for NIS #Configure this server as NIS master server by editing '<tt>/etc/default/nis</tt>' and updating below two parameter values: #:<pr...")
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 nscd
- 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 rpcbind 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
In future whenever a new user is added to the server, we need to run below command
make -C /var/yp
Home > Ubuntu > HPC setup with openpbs and openmpi > NIS server setup on master node