- Install nis service
> sudo apt-get install nis
- Install autofs service
> sudo apt-get install autofs
- Edit /etc/auto.master and add the following lines
| /home auto.home --timeout=10000 |
- Edit /etc/yp.conf and add the following lines
| domain www.kongxx.com server xxx.xxx.xxx.xxx |
- Backup /etc/nsswitch.conf, and create a new file and add the following lines
| passwd: files nis shadow: files nis group: files nis hosts: files nis dns bootparams: files ethers: files netmasks: files networks: files protocols: files nis rpc: files services: files nis netgroup: files nis publickey: files automount: files nis aliases: files |
- Reboot host.
本文介绍如何在Linux系统中安装并配置NIS及Autofs服务,包括安装必要的软件包、编辑配置文件以及重启主机等步骤。
668

被折叠的 条评论
为什么被折叠?



