automounter

Configure the automounter with direct and indirect maps to automatically mount an NFS file system on demand, and unmount it when it is no longer in use.

Task 1:

Configure autofs to make sure after login successfully, it has the home directory autofs, which is shared as /rhome/ldapuser40 at the ip: 172.24.40.10 and it also requires that, other ldap users can use the home directory normally.

Solution:

useradd ldapuser40
passwd --stdin ldapuser40
yum install autofs
systemctl start autofs
systemctl enable autofs

vim /etc/auto.master
/rhome /etc/auto.ldap

cp /etc/auto.misc /etc/audo.ldap
vim /etc/auto.ldap
ldapuser --rw,soft,intr 172.24.40.10:/rhome/ldapuser40
service autofs stop
service autofs start

Last updated

Was this helpful?