Edit the
/etc/fstabfile and add the line :
SHARED_WINDOWS_FOLDER PATH_TO_LINUX_FOLDER cifs noperm,credentials=PATH_TO_CREDENTIALS,uid=1000,gid=33,file_mode=0664,dir_mode=02775 0 0
Where:
SHARED_WINDOWS_FOLDERis your windows shared folder : it could be//MYPC/vhostsPATH_TO_LINUX_FOLDERis the folder where you want to mount : it could be/var/www/vhostsPATH_TO_CREDENTIALSis the path to your credentials file to access the share (your windows user and password) it cold be~/credentials
username=ENTER_WINDOWS_USERNAMEpassword=ENTER_WINDOWS_PASSWORD
SHARED_WINDOWS_FOLDER PATH_TO_LINUX_FOLDER cifs noperm,username=ENTER_WINDOWS_USERNAME,password=ENTER_WINDOWS_PASSWORD,uid=1000,gid=33,file_mode=0664,dir_mode=02775 0 0
Where:
ENTER_WINDOWS_USERNAMEis your windows usernameENTER_WINDOWS_PASSWORDis your windows password