Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSS

mount file share linux windows ubuntu

sudo apt-get install cifs-utils -y

#destination 
sudo mkdir /media/windowsshare

#create login creds
gedit ~/.smbcredentials

username=msusername
password=mspassword

chmod 600 ~/.smbcredentials

#/etc/fstab
//servername/sharename  /media/windowsshare  cifs  username=msusername,password=mspassword,iocharset=utf8,sec=ntlm  0  0

#ro for read only
sudo mount -a ro
 
PREVIOUS NEXT
Tagged: #mount #file #share #linux #windows #ubuntu
ADD COMMENT
Topic
Name
6+6 =