How to set up group write permissions on new created files on cifs mount point (samba/fstab)

Solution 1:

Can you try to add mount option file_mode=0770,dir_mode=0770.

  1. Try to modify /etc/fstab file:

    //smbserver/nas /media/nas      cifs    uid=bertrand,gid=nas,credentials=/root/.smbcredentials,file_mode=0770,dir_mode=0770     0     0
    
  2. Or, mount command

    sudo mount -t cifs //smbserver/nas /media/nas -o uid=bertrand,gid=nas,rw,credentials=/root/.smbcredentials,file_mode=0770,dir_mode=0770
    

My test environment:

OS version: Ubuntu 10.04.4 LTS
kernel version: 2.6.35-25
mount.cifs version: 1.12-3.4.7
samba version: Version 3.4.7