On 2024-04-08 14:13 -0600, Sam Hartman wrote:

>>>>>> "Professor" == Professor Jeebs <je...@tuta.io> writes:
>
>
>     Professor> I prefer the way it is handled per user.  There is a related, 
> commented
>     Professor> out, option in /etc/skel/.profile, which lands in new user 
> directories,
>     Professor> which I have never touched the umask part until now.  I 
> uncommented the
>     Professor> line to set the users' default umask settings to 022 and 
> updated users
>     Professor> already on the system.
>
>
> Just confirming.  You could have modified /etc/login.defs if you chose
> and gotten a similar affect, right?

I think the file to edit is actually /etc/pam.d/common-session, adding
the "nousergroups" option in the line with pam_umask.so.  That is what I
did after reading the pam_umask(8) manpage.

Cheers,
       Sven

Reply via email to