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


View this message in rfc822 format

From: help-debbugs <at> gnu.org (GNU bug Tracking System)
To: myglc2 <myglc2 <at> gmail.com>
Subject: bug#22650: closed (Re: bug#22650: guixSD default umask is 0000)
Date: Tue, 08 Mar 2016 22:35:02 +0000
[Message part 1 (text/plain, inline)]
Your bug report

#22650: umask is 0000 when logging in over SSH (with lshd running)

which was filed against the guix package, has been closed.

The explanation is attached below, along with your original report.
If you require more details, please reply to 22650 <at> debbugs.gnu.org.

-- 
22650: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=22650
GNU Bug Tracking System
Contact help-debbugs <at> gnu.org with problems
[Message part 2 (message/rfc822, inline)]
From: ludo <at> gnu.org (Ludovic Courtès)
To: Alex Kost <alezost <at> gmail.com>
Cc: 宋文武 <iyzsong <at> openmailbox.org>, iyzsong <at> gmail.com,
 iyzsong <at> member.fsf.org, 22650-done <at> debbugs.gnu.org
Subject: Re: bug#22650: guixSD default umask is 0000
Date: Tue, 08 Mar 2016 23:33:49 +0100
Alex Kost <alezost <at> gmail.com> skribis:

> 宋文武 (2016-03-07 18:18 +0300) wrote:
>
>> 于 2016年3月7日 GMT+08:00下午8:18:44, ludo <at> gnu.org 写到:
>>
>>     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’.
>>
>>
>> I never pay attention to umask, but set it in /etc/profile seem the
>> right thing to me. IIRC, debian and exherbo set it in there too.
>
> I agree ("ArchLinux" also has "umask 022" in /etc/profile).

Done in 112024826d3283284654475a50ccef81c697e2c9.

Thanks for your feedback,
Ludo’.

[Message part 3 (message/rfc822, inline)]
From: myglc2 <myglc2 <at> gmail.com>
To: bug-guix <at> gnu.org
Subject: guixSD default umask is 0000
Date: Sat, 13 Feb 2016 09:36:35 -0500
out of the box, umask should default to something more typical.




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.