[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: UPG and the default umask

On Mon, May 17, 2010 at 2:22 PM, Santiago Vila <sanvila@unex.es> wrote:
> On Mon, 17 May 2010, Timo Juhani Lindfors wrote:
>> Santiago Vila <sanvila@unex.es> writes:
>> > In either case, if we plan to set default umask in /etc/login.defs or
>> /etc/login.defs is not read when I login to openssh server and it has
>> "UseLogin" set to false. If I enable UseLogin then X11 forwarding
>> stops working [1]. To me it seems that login.defs can not be the only
>> place where umask is set.
> Ok, what about PAM?
> I would *really* like to drop umask setting from /etc/profile and rely on
> something of lower level, be it login.defs, PAM or whatever.
> What would be the steps required to be able to drop umask from /etc/profile?


Put this to /etc/pam.d/common-session file:
session optional pam_umask.so umask=002

And it will work



> --
> To UNSUBSCRIBE, email to debian-devel-REQUEST@lists.debian.org
> with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
> Archive: [🔎] alpine.DEB.1.10.1005171419450.12903@kolmogorov.unex.es">http://lists.debian.org/[🔎] alpine.DEB.1.10.1005171419450.12903@kolmogorov.unex.es

Reply to: