Monday, October 1, 2012

Auto mount

/etc/auto.master provides the master configuration for autofs

Example:

/home/guests /etc/auto.guests



/etc/auto.guests file was specified in /etc/auto.master

Example using LDAP user home directories

ldapuser1     -rw     ldap.example.com:/home/guests/ldapuser1


there are wild card if you intend to auto mount all

*        ldap.example.com:/home/guests/&


After all done, just do

# service autofs reload



* note, if we mount /home/guests for using automount. the whole folder of guests will be take over by it and we unable to edit things in it

No comments:

Post a Comment