This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Problem: Need to access Windows share but only when on the company vpn. | |
- Tried mounting via fstab but the mount failed because I'm not automatically connected to the vpn when logged in | |
- Created a bash alias that simply mounts the share, the problem is that it's cumbersome to start the vpn then remember to run the mount command. | |
Autofs is a great option as it will automount that windows share only if I try and access it. | |
# Has to install it (Linux Mint 19) | |
sudo apt install autofs | |
# Opended the "/etc/auto.master" file the install created and added this line: |
OlderNewer