autofsを構成します。 必要に応じて、autofsがLDAPのホームディレクトリに自動的にマウントされるように設定します。 server.domain11.example.comは、NFSを使用してホームをシステムと共有します。このファイルシステムには、ユーザーldapuserXのホームディレクトリが事前に構成されています。 ldapuserXのホームディレクトリは次のとおりです。 server.domain11.example.com / home / guests / ldapuser ldapuserXのホームディレクトリは、ローカルの/ home / guestsのldapuserXに自動的にマウントする必要があります。ホームディレクトリの書き込み権限は、ユーザーが使用できる必要がありますldapuser1のパスワードはpasswordです
正解:
see explanation below. Explanation yum install -y autofs mkdir /home/rehome * /etc/auto.master /home/rehome/etc/auto.ldap Keep then exit cp /etc/auto.misc /etc/auto.ldap * /etc/auto.ldap ldapuserX -fstype=nfs,rw server.domain11.example.com:/home/guests/ Keep then exit systemctl start autofs systemctl enable autofs su - ldapuserX// test If the above solutions cannot create files or the command prompt is -bash-4.2$, it maybe exist multi-level directory, this needs to change the server.domain11.example.com:/home/guests/ to server.domain11.example.com:/home/guests/ldapuserX. What is multi-level directory? It means there is a directory of ldapuserX under the /home/guests/ldapuserX in the questions. This directory is the real directory.