GNU bug report logs - #22650
umask is 0000 when logging in over SSH (with lshd running)

Previous Next

Package: guix;

Reported by: myglc2 <myglc2 <at> gmail.com>

Date: Sat, 13 Feb 2016 14:37:01 UTC

Severity: normal

Done: ludo <at> gnu.org (Ludovic Courtès)

Bug is archived. No further changes may be made.

Full log


Message #22 received at 22650 <at> debbugs.gnu.org (full text, mbox):

From: ludo <at> gnu.org (Ludovic Courtès)
To: iyzsong <at> member.fsf.org (宋文武), Alex Kost
 <alezost <at> gmail.com>
Cc: , 宋文武 <iyzsong <at> gmail.com>, 22650 <at> debbugs.gnu.org
Subject: Re: bug#22650: guixSD default umask is 0000
Date: Mon, 07 Mar 2016 13:18:44 +0100
ludo <at> gnu.org (Ludovic Courtès) skribis:

> myglc2 <myglc2 <at> gmail.com> skribis:
>
>> glc <at> g1 ~$ ssh glc4 <at> g1
>> glc4 <at> g1's password: 
>> glc4 <at> g1 ~$ 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?

宋文武 & Alex: WDYT?  (Asking you since I know you’re already familiar
with these things.  :-))

Ludo’.




This bug report was last modified 9 years and 82 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.