From mboxrd@z Thu Jan 1 00:00:00 1970 From: ludo@gnu.org (Ludovic =?UTF-8?Q?Court=C3=A8s?=) Subject: bug#22650: guixSD default umask is 0000 Date: Mon, 07 Mar 2016 13:18:44 +0100 Message-ID: <87egbmtra3.fsf@gnu.org> References: <874mdcoex8.fsf@gmail.com> <878u2dr6u4.fsf@gnu.org> <87k2lw67cb.fsf@gmail.com> <8760xef73w.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:50714) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1acu8t-0001FA-IZ for bug-guix@gnu.org; Mon, 07 Mar 2016 07:20:08 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1acu8o-0000iQ-Kc for bug-guix@gnu.org; Mon, 07 Mar 2016 07:20:07 -0500 Received: from debbugs.gnu.org ([208.118.235.43]:40242) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1acu8o-0000iM-Ha for bug-guix@gnu.org; Mon, 07 Mar 2016 07:20:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84) (envelope-from ) id 1acu8o-00062Q-Fv for bug-guix@gnu.org; Mon, 07 Mar 2016 07:20:02 -0500 Sender: "Debbugs-submit" Resent-Message-ID: In-Reply-To: <8760xef73w.fsf@gnu.org> ("Ludovic \=\?utf-8\?Q\?Court\=C3\=A8s\=22'\?\= \=\?utf-8\?Q\?s\?\= message of "Wed, 24 Feb 2016 16:41:55 +0100") List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+gcggb-bug-guix=m.gmane.org@gnu.org Sender: bug-guix-bounces+gcggb-bug-guix=m.gmane.org@gnu.org To: =?UTF-8?Q?=E5=AE=8B=E6=96=87=E6=AD=A6?= , Alex Kost Cc: 22650@debbugs.gnu.org ludo@gnu.org (Ludovic Court=C3=A8s) skribis: > myglc2 skribis: > >> glc@g1 ~$ ssh glc4@g1 >> glc4@g1's password:=20 >> glc4@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=E2=80=99m= unsure > if lshd would honor it), or alternately add explicitly set the umask in > /etc/profile. > > Thoughts? =E5=AE=8B=E6=96=87=E6=AD=A6 & Alex: WDYT? (Asking you since I know you=E2= =80=99re already familiar with these things. :-)) Ludo=E2=80=99.