From mboxrd@z Thu Jan 1 00:00:00 1970 From: Alex Kost Subject: bug#22650: guixSD default umask is 0000 Date: Tue, 08 Mar 2016 01:25:59 +0300 Message-ID: <87k2lekjrc.fsf@gmail.com> References: <874mdcoex8.fsf@gmail.com> <878u2dr6u4.fsf@gnu.org> <87k2lw67cb.fsf@gmail.com> <8760xef73w.fsf@gnu.org> <87egbmtra3.fsf@gnu.org> <5395DF11-541F-40A8-A704-26E2FF6D0654@openmailbox.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]:46010) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ad3bK-00024q-FJ for bug-guix@gnu.org; Mon, 07 Mar 2016 17:26:07 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ad3bG-0002IC-Do for bug-guix@gnu.org; Mon, 07 Mar 2016 17:26:06 -0500 Received: from debbugs.gnu.org ([208.118.235.43]:41293) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ad3bG-0002I7-AY for bug-guix@gnu.org; Mon, 07 Mar 2016 17:26:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84) (envelope-from ) id 1ad3bG-0005rT-6S for bug-guix@gnu.org; Mon, 07 Mar 2016 17:26:02 -0500 Sender: "Debbugs-submit" Resent-Message-ID: In-Reply-To: <5395DF11-541F-40A8-A704-26E2FF6D0654@openmailbox.org> ("=?UTF-8?Q?=E5=AE=8B=E6=96=87=E6=AD=A6?= "'s message of "Mon, 07 Mar 2016 23:18:48 +0800") 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?= Cc: iyzsong@member.fsf.org, 22650@debbugs.gnu.org =E5=AE=8B=E6=96=87=E6=AD=A6 (2016-03-07 18:18 +0300) wrote: > =E4=BA=8E 2016=E5=B9=B43=E6=9C=887=E6=97=A5 GMT+08:00=E4=B8=8B=E5=8D=888:= 18:44, ludo@gnu.org =E5=86=99=E5=88=B0: > > ludo@gnu.org (Ludovic Court=C3=A8s) skribis: > > myglc2 skribis: > > glc@g1 ~$ ssh glc4@g1 > glc4@g1's password: > 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 u= mask in > /etc/profile. > > Thoughts? > > =E5=AE=8B=E6=96=87=E6=AD=A6 & Alex: WDYT? (Asking you since I know y= ou=E2=80=99re already familiar > with these things. :-)) > > Ludo=E2=80=99. > > > 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). -- Alex