Skip to content

Instantly share code, notes, and snippets.

@mrigor
Created July 4, 2012 04:26
Show Gist options
  • Save mrigor/3045329 to your computer and use it in GitHub Desktop.
Save mrigor/3045329 to your computer and use it in GitHub Desktop.
OS X NAS automounting
$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