This is an old revision of the document!
sudo apt install nis
$ sudo vi /etc/defalut/nis
NISSERVER=master
$ sudo vi /etc/yp.conf
ypserver 192.168.0.1
$ sudo vi /etc/ypserv.securenets
(略) # This line gives access to everybody. PLEASE ADJUST! #0.0.0.0 0.0.0.0 255.255.255.0 192.168.0.0
$ sudo /usr/lib/yp/ypinit -m At this point, we have to construct a list of the hosts which will run NIS servers. dlp.srv.world is in the list of NIS server hosts. Please continue to add the names for the other hosts, one per line. When you are done with the list, type a <control D>. next host to add: kanri next host to add: # Ctrl + D キー The current list of NIS servers looks like this: kanri Is this correct? [y/n: y] y We need a few minutes to build the databases... (以下略)
$ sudo systemctl restart nis
$ sudo apt install nis
$ sudo vi /etc/yp.conf
domain kanri.nis server 192.168.0.1
$ sudo vi /etc/nsswitch.conf
(略) passwd: files systemd nis group: files systemd nis shadow: files nis gshadow: files hosts: files dns nis (略)
$ systemctl restart rpcbind nis
$ sudo adduser sugimoto $ sudo make -C /var/yp
$ ssh sugimoto@keisan11
$ sudo vim /lib/systemd/system/systemd-logind.service # IPAddressDeny=any をコメントアウト $ sudo systemctl daemon-reload
Job for systemd-udevd.service failed because a timeout was exceeded. See "systemctl status systemd-udevd.service" and "journalctl -xe" for details. invoke-rc.d: initscript udev, action "restart" failed. ● systemd-udevd.service - udev Kernel Device Manager Loaded: loaded (/lib/systemd/system/systemd-udevd.service; static; vendor preset: enabled) Active: activating (start) since Xxx xxxx-xx-xx xx:xx:xx UTC; 20ms ago TriggeredBy: ● systemd-udevd-kernel.socket ● systemd-udevd-control.socket Docs: man:systemd-udevd.service(8) man:udev(7) Main PID: 50463 (systemd-udevd) Tasks: 1 Memory: 940.0K CGroup: /system.slice/systemd-udevd.service └─50463 /lib/systemd/systemd-udevd xxx xx xx:xx:xx keisan11 systemd[1]: Starting udev Kernel Device Manager... dpkg: error processing package udev (--configure): installed udev package post-installation script subprocess returned error exit status 1
$ sudo vim /lib/systemd/system/systemd-udevd.service # IPAddressDeny=any をコメントアウト $ sudo systemctl daemon-reload $ sudo apt update $ sudo apt upgrade