{{tag>[network linux smb fedora share]}} =====Fedora 26 - autofs SMB v3==== * Install required packages:sudo dnf -y install autofs samba-client samba-common * Set some variables: nashostname= nasshare= localmount="${HOME}/${nashostname}" * Create mount point:mkdir ${localmount} * Configure autofs: # Add master map sudo tee /etc/auto.master.d/${nashostname}.autofs < * Configure credentials for auto mounting. Be careful when storing credentials in plain text. sudo vi /etc/.smbcred.txt username=value password=value domain=value sudo chown root:root /etc/.smbcred.txt sudo chmod 600 /etc/.smbcred.txt * Enable and start autofs:sudo systemctl enable autofs --now