在Ubuntu上配置NIS帐号

  • 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)