Tuesday, 17 June 2014

Mounting an OSX SMB Share on Linux

I got bit by this recently, and so sticking it here for when I forget next time ;)

Depending on the version of OSX you might have to specify different security settings:
mount.cifs //server_ip/share_name /mount_point -o username=osx_user,noexec,nounix,sec=ntlm,no perm,rw
This generally works, but you might need to change sec to sec=ntlmssp
First create the mount point if it doesn't exist:
sudo mkdir /mnt/Public
Then mount it:
sudo mount.cifs // /mnt/Public -o username=admin,noexec,nounix,sec=ntlm,no perm,rw
To unmount it:
sudo unmount /mnt/Public

No comments:

Post a Comment