» about » content » twitter » github »

Mounting a Windows share from Linux

Always test your connection with a manual test first:

smbclient '//servername/sharename' -d3 -U UserName%Password -W DomainName

Then try to mount it manually:

smbmount //servername/sharename /localmountpoint -o 
username=UserName/DomainName,password=Password,fmask=0777, dmask=0777,ip=

And finally, add line to your /etc/fstab file (so that it mounts during system startup):

//servername/sharename /localmountpoint smbfs 
username=UserName/DomainName,password=Password,fmask=666,dmask=777 0 0

© Roqet 2019 :: 2019-01-04 14:18:12