Often you may want a cifs/smbfs (Samba) mount on Linux to be writeable by normal users. If it is the case that you can write to the mounted filesystem as root but not as a normal user (Permission Denied), then you may need to adjust your mount options in /etc/fstab. The key mount options are file_mode and dir_mode, which override the default file and directory permissions for Samba shares. By manually setting these values, you can grant read/write access to normal users on the local machine:
/etc/fstab
//youserver/sharename /mnt/mountpoint cifs username=yourusername,password=yourpassword,file_mode=0664,dir_mode=0775
File mode 664 means that the owner and members of the group can read and write while others can only read. This allows local users to read and write to the Samba/CIFS share.





