[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#22650: guixSD default umask is 0000
From: |
myglc2 |
Subject: |
bug#22650: guixSD default umask is 0000 |
Date: |
Mon, 29 Feb 2016 21:25:59 -0500 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.5 (gnu/linux) |
address@hidden (Ludovic Courtès) writes:
> myglc2 <address@hidden> skribis:
>
>> address@hidden ~$ ssh address@hidden
>> address@hidden's password:
>> address@hidden ~$ umask
>> 0000
>
> Oh indeed, I can reproduce it.
>
> The problem is that lshd resets the umask when it starts (in
> src/daemon.c:daemon_init) but never changes it again.
>
> Perhaps we should be using pam_umask and login.defs (although I’m unsure
> if lshd would honor it), or alternately add explicitly set the umask in
> /etc/profile.
>
> Thoughts?
Thanks for looking into this. Sorry, but I'm not qualified to comment.