Mount SAMBA (SMBFS) share on OSX MAC APPLE (Mavericks users)
Modify the /etc/auto_master (sudo vi /etc/auto_master
) file and add the following line:
/- auto_smb -nosuid
Create a folder on your system to place your mount in:
sudo mkdir /mnt
Create an /etc/auto_smb (sudo vi /etc/auto_smb
) file that contains the following:
/mnt/mount_point -fstype=smbfs,soft ://user:pass@smbserver/share
Next, run the following command to update your settings:
sudo automount -vc
A few notes:
- The
soft
parameter specifies OSX to not halt on failure to connect to the SMB server during boot. - When entering the password, it's better to URL encode it as some special characters will cause the automount to fail silently.
nosuid
parameter in the /etc/auto_master file prevents OSX from mounting the resource as readonly by root (see update below!).