NIS Server - Operations

nis-master | (netbsd) | nis-slave | nis-client | nis-ops

Operations

vi STATUS

systemctl status ypbind.service | grep -E 'Active:|Loaded:'
systemctl status ypserv.service | grep -E 'Active:|Loaded:'
systemctl status ypxfrd.service | grep -E 'Active:|Loaded:'
#systemctl status yppasswdd.service

chmod +x STATUS

User mgmt

create a user

on the NIS master node

# for both gnu/linux and netbsd
groupadd -g 1000 nisusers
    useradd -m -g nisusers -u 1000 -s /bin/bash usercheck0
    cd /var/yp/
    make

and check the new user has been populated

on some NIS client node

getent passwd | grep check

Troubleshooting

while re-generate maps on the master

Dec  4 20:20:35 ypslave ypserv[301]: refuse to transfer passwd.byname from 10.3.3.43 port 875, master is ypmaster.angrycow.ru)

==> need to start yp xfrd on the slave

Resources

http://www.verycomputer.com/167_ffeed8c7cd62431a_1.htm

http://www.linuxmisc.com/2-linux-networking/ffeed8c7cd62431a.htm


HOME | GUIDES | LECTURES | LAB | SMTP HEALTH | HTML5 | CONTACT
Copyright © 2024 Pierre-Philipp Braun