NISBuildD is a daemon which can rebuild NIS database automatically. When changes happend on /etc/passwd
, /etc/shadow
, /etc/group
, /etc/gshadow
, this daemon will enter /var/yp
and execute make
.
Warning
|
If your distribution does`t put NIS database in /var/yp , you need to edit my code.
|
To use it, you need to install Node.js
and npm
on your NIS master node.
You can get my code by git
, but need to install dependencies by yourself, like this:
git clone https://gitee.com/qihexiang/nisbuildd.git
cd nisbuildd
npm install
If you don`t like to install dependencies on your server, you can install them on your computer, and then make it a tarball:
cd ..
tar czfv nisbuildd.tar.gz nisbuildd
And then upload it to your server.
When it`s already on your server, for example, with path /opt/nisbuildd
, you can write a systemd unit to control it, like this:
[Unit]
Description=NIS Database auto rebuild daemon
[Service]
Type=simple
ExecStart=/usr/bin/node /opt/nisbuildd/index.js
[Install]
WantedBy=multi-user.target
After that, you can use systemctl enabel nisbuildd --now
to make it working.
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。