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: Wed, 24 Feb 2016 16:41:55 +0100 Message-ID: <8760xef73w.fsf@gnu.org> References: <874mdcoex8.fsf@gmail.com> <878u2dr6u4.fsf@gnu.org> <87k2lw67cb.fsf@gmail.com> 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]:56688) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aYbal-00027P-6y for bug-guix@gnu.org; Wed, 24 Feb 2016 10:43:08 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aYbaf-0000dP-Vd for bug-guix@gnu.org; Wed, 24 Feb 2016 10:43:07 -0500 Received: from debbugs.gnu.org ([208.118.235.43]:46866) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aYbaf-0000dL-SI for bug-guix@gnu.org; Wed, 24 Feb 2016 10:43:01 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84) (envelope-from ) id 1aYbaf-00045d-No for bug-guix@gnu.org; Wed, 24 Feb 2016 10:43:01 -0500 Sender: "Debbugs-submit" Resent-Message-ID: In-Reply-To: <87k2lw67cb.fsf@gmail.com> (myglc2@gmail.com's message of "Mon, 22 Feb 2016 11:24:52 -0500") 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: myglc2 Cc: 22650@debbugs.gnu.org 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 u= nsure if lshd would honor it), or alternately add explicitly set the umask in /etc/profile. Thoughts? Thanks, Ludo=E2=80=99.