Last active
August 29, 2015 14:07
-
-
Save ugovaretto/ead404aa225afdff0cfb to your computer and use it in GitHub Desktop.
Mount smb share from linux
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
#requirement: sudo apt-get install cifs-utils | |
#The key to make it work is the *** vers=2.1 *** parameter | |
#try with versions: 1.0, 2.0, 2.1 and 3.0 (as of 10 2014), read through the cifs docs | |
#for up to date info, the following works from an ubuntu 14.3 guest to an Apple Mac OS Mavericks host | |
sudo mount -t cifs //10.0.2.2/ugo /home/ugo/m -ousername=XXX,password=YYY,vers=2.1 | |
#to mount permanently, add entry in fstab then sudo mount -a | |
#/etc/fstab entry | |
#//10.0.2.2/<share> /media/<local path> cifs credentials=/home/<home dir>/.smbcredentials,iocharset=utf8,vers=2.1 0 0 | |
#.smbcredentials contains: | |
#username=... | |
#password=... | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment