nis集成autofs,失败了!!
之前使用nis都是用nfs共享用户主目录,在网上看到了可以使用nis+autofs,弄成自动挂载!
我是直接在nisserver的/etc/auto_home加入:hostname:/user/&
但是client无法挂载,是不是一定要用在主控地图添加相应的项。
我目前做的是直接在client端添加/etc/auto_master"/- auto_direct -rw",然后在/etc/auto_direct添加/user/user1 -soft,bg remotehost:/user1
如果按照这种方法,我有很多用户,不是要一个一个的添加进去??
有没办法像写入vfstab文件那样:
remotehost:/user - /user nfs - yes soft,bg
直接挂载/user目录下的所有的目录。