I have a network drive service hosted on Samba(Whose settings I can't change) when I mount it on my ubuntu pc using mount.cifs I am able to read write it's content. To make a directory or file there using sudo only(My current user have sudo rights).
Mount command used is: sudo mount.cifs //address.to.samba /mnt/temp -o"username=user,password=pswd"
When the network drive is mounted on /mnt/temp/, in my php program file_exists(/mnt/temp/)
returns True where as is_writable(/mnt/temp/)
returns false.
The permission of /mnt/temp is initially 755. But even if I do chmod to 766 for the directory it dosen't change.
what shall I do ?
-o 'uid=...,gid=...,file_mode=...,dir_mode=...,username=...,password=...'
. See the manual page formount.cifs
for details.