- 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.
本文介绍如何通过Ubuntu系统安装并配置NIS与Autofs服务。首先使用sudo apt-get install命令安装nis和autofs服务,然后编辑/etc/auto.master文件添加挂载配置,并在/etc/yp.conf中设置NIS域名及服务器地址。最后修改/etc/nsswitch.conf以支持NIS认证,并重启主机完成设置。
658

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



