I have a directory that has rwxrwxr-x
and -s-
permission settings, if I create files in this folder from user A these files gets permission rw-rw-r--
, and with user B it gets rw-r--r--
. I'm really confused about how exactly files are getting their permission set when they are first created...
To be more focused on what i need to do - the directory has group G which contains both users A and B and I want them both to be able to work on all the files in that same directory, so if both of them would have created files with rw-rw-r--
they could work on these files (delete them and recreate them or just edit them) without interference.
drwxrwsr-x
?umask
. There was a question a, few days ago, about file-access-control-lists FACLs, that may be relevant. unix.stackexchange.com/q/570795/4778 and unix.stackexchange.com/q/573349/4778