Difference between revisions of "Ubuntu HPC NIS client setup on compute nodes"

From Notes_Wiki
(Created page with "Home > Ubuntu > HPC setup with openpbs and openmpi > NIS client setup on compute nodes #Install NIS packages #:<pre> #:: apt -y install nis nscd #:</pre> #: During installation mention correct NIS domain as setup on master node. #Add below line in '<tt>/etc/yp.conf</tt>' file #:<pre> #:: domain <private-domain> server master #:</pre> #Add nis based re...")
 
m
 
(One intermediate revision by the same user not shown)
Line 3: Line 3:
#Install NIS packages
#Install NIS packages
#:<pre>
#:<pre>
#:: apt -y install nis nscd
#:: apt -y install nis  
#:</pre>
#:</pre>
#: During installation mention correct NIS domain as setup on master node.
#: During installation mention correct NIS domain as setup on master node.
Line 15: Line 15:
#:: group:          files systemd nis
#:: group:          files systemd nis
#:: shadow:        files nis
#:: shadow:        files nis
#:: hosts:          files dns nis
#:: hosts:          files dns
#:</pre>
#:</pre>
#Add below line in common-session ile
#Add below line in common-session ile

Latest revision as of 10:14, 28 February 2023

Home > Ubuntu > HPC setup with openpbs and openmpi > NIS client setup on compute nodes

  1. Install NIS packages
    apt -y install nis
    During installation mention correct NIS domain as setup on master node.
  2. Add below line in '/etc/yp.conf' file
    domain <private-domain> server master
  3. Add nis based resolution for various databases in '/etc/nsswitch.conf' file such as:
    passwd: files systemd nis
    group: files systemd nis
    shadow: files nis
    hosts: files dns
  4. Add below line in common-session ile
    vim /etc/pam.d/common-session
    session optional pam_mkhomedir.so skel=/etc/skel umask=007
  5. Restart NIS server and check whether user1 is visible in passwd database or not
    systemctl restart nis
    getent passwd

For some reason any new user login is not working on client until system is rebooted. This issue needs to be debugged.


Home > Ubuntu > HPC setup with openpbs and openmpi > NIS client setup on compute nodes