我正在设置一个计算集群,并负责设置 NIS 服务器和客户端环境。到目前为止,我在各个方面都取得了成功,除了 NIS 客户端没有挂载主目录之外。
我一直在遵循以下步骤本文,到目前为止我已经做到了。我能够正确登录到 NIS 客户端,但是当它到达那里时,它会让我看到 bash 提示符并显示Could not chdir to home directory /nethome/cfduser: No such file or directory
.当我进入 bash 提示符时,我可以确认该/nethome
目录存在,但它是空的。
我不知道从这里该去哪里。我可以提供任何需要的配置文件,如果需要的话还可以提供更多。
客户端和服务器都运行CentOS 7 b1804
编辑1:
我的/etc/auto.master
# Sample auto.master file
# This is a 'master' automounter map and it has the following format:
# mount-point [map-type[,format]:]map [options]
# For details of the format look at auto.master(5).
#
/misc /etc/auto.misc
#
# NOTE: mounts done from a hosts map will be mounted with the
# "nosuid" and "nodev" options unless the "suid" and "dev"
# options are explicitly given.
#
/net -hosts
#
# Include /etc/auto.master.d/*.autofs
# The included files must conform to the format of this file.
#
+dir:/etc/auto.master.d
#
# Include central master map if it can be found using
# nsswitch sources.
#
# Note that if there are entries for /net or /misc (as
# above) in the included master map any keys that are the
# same will not be seen as the first read key seen takes
# precedence.
#
+auto.master
/nethome /etc/auto.home
我的/etc/auto.home
* -rw,sync 192.168.1.1:/nethome/&