» 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=127.0.0.1
    

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 2018 :: 2018-05-11 17:07:10