How can I mount a Common Internet File System (CIFS) on a Linux server with group write permissions?

I would like to mount a CIFS group share directory on a Linux server and maintain the group permissions of users configured in the Active Directory (AD). The Linux server is already configured to use AD.

CURATOR: Raminder Singh

Here are the commands to mount with write permissions on the group share:

mount -t cifs -o username='userid',workgroup='groupName',uid='userid',gid='groupname/id',file_mode=0664,dir_mode=0775 //server/location/ 'local mount location'