I have two ubuntu ec2 servers - let's say ServerA and ServerB.
ServerA has a large EBS attached to it and it's shared via Samba. This EBS is mounted to ServerB on /var/www/static. If I create file from ServerB using the ubuntu user (which exists on both servers), the default permission is set as follows
-rw-r--r-- 1 ubuntu ubuntu 0 2012-05-16 09:21 test
What I am trying to do is give full permission (777) to all files in this share whoever creates the file from whichever server.
fstab looks like this
//ServerA/static /var/www/static cifs credentials=/home/ubuntu/.smbclient,umask=000 0 0