| Windows server | demoserver |
|---|---|
| Share | demoshare |
| Mount path on the FileMaker server | /mnt/demoserver |
apt-get install autofs cifs-utilssudo mkdir /mnt/demoserver
sudo chmod 700 /mnt/demoserver
sudo chown fmserver:fmsadmin /mnt/demoserverWe need this for the automount file in the next step
id -u fmserver
id -g fmserverFor this demo, I assume the user id is 1001 and the group id is 1002.
Add this line to /etc/auto.master
/mnt/demoserver /etc/auto.demoserver --timeout=600 --ghost
Create the file /etc/auto.demoserver
# Automatically mount the demoserver share
# autofs uses the ticket cache in /tmp/krb5cc_0
demoshare -fstype=cifs,vers=3.0,sec=krb5,cruid=0,uid=1001,gid=1002 ://demoserver/demoshare
sudo systemctl enable autofs
sudo systemctl start autofscd /mnt/demoserver/demoshare