Mount Windows/Samba Shares with Autofs in CentOS 6/7/8

Samba and Windows that are used on-demand should be mounted with autofs.  The system will mount or remount the share automatically as needed.

  1. Create /etc/smbpasswd to store the credentials for the user accessing the share
    domain=domain.int
    username=storage
    password=p@ssw0rd

    Read more Mount Windows/Samba Shares with Autofs in CentOS 6/7/8