Created
July 4, 2012 04:26
-
-
Save mrigor/3045329 to your computer and use it in GitHub Desktop.
OS X NAS automounting
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
$sudo vim /etc/auto_master | |
Add the following line to this file: | |
/Users/igor/shares auto_smb | |
Now create a new file /etc/auto_smb: | |
$sudo vi /etc/auto_smb | |
Add a line for every share in this file like so: | |
video -fstype=smbfs ://user:password@192.168.1.150/video | |
video -fstype=afp afp://user:password@192.168.1.150/video | |
Now set the correct permissions for this file: | |
sudo chmod 600 /etc/auto_smb | |
Restart automount daemon: | |
sudo automount -vc |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment