I just set up another Samba server (10.04.3). I set the umask in /etc/profile. It was 022 (the ubuntu default). When I set it to 002 all the files created are now rw-rw-r--
Originally Posted by matt_symes
... In looking at the man pages the first thing that jumps out at me is
The umask argument here (in red) is, I believe, set via /etc/profile.
PAM_UMASK(8) Linux-PAM Manual PAM_UMASK(8)
pam_umask - PAM module to set the file mode creation mask
pam_umask.so [debug] [silent] [usergroups] [umask=mask]
The PAM module tries to get the umask value from the following places
in the following order:
· umask= argument
· umask= entry of the users GECOS field
My umask argument isThis is not the default, but as I set it in /etc/profile.