Debian Bug report logs - #368080
gdm: changes umask when logging in

version graph

Package: gdm; Maintainer for gdm is (unknown);

Reported by: Jeroen van Gorkum <jeroen@vangorkum.com>

Date: Fri, 19 May 2006 18:33:01 UTC

Severity: important

Tags: fixed-upstream, upstream

Merged with 314791, 321620, 336214

Found in versions 2.6.0.8-1, gdm/2.6.0.8-1

Fixed in version 2.20.11-4+rm

Done: Andreas Beckmann <anbe@debian.org>

Bug is archived. No further changes may be made.

Forwarded to http://bugzilla.gnome.org/show_bug.cgi?id=305931

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to debian-bugs-dist@lists.debian.org, Tollef Fog Heen <tfheen@debian.org>:
Bug#368080; Package libpam-umask. (full text, mbox, link).


Acknowledgement sent to Jeroen van Gorkum <jeroen@vangorkum.com>:
New Bug report received and forwarded. Copy sent to Tollef Fog Heen <tfheen@debian.org>. (full text, mbox, link).


Message #5 received at submit@bugs.debian.org (full text, mbox, reply):

From: Jeroen van Gorkum <jeroen@vangorkum.com>
To: Debian Bug Tracking System <submit@bugs.debian.org>
Subject: libpam-umask: doesn't seem to work for sessions other than remote ssh
Date: Fri, 19 May 2006 20:22:14 +0200
Package: libpam-umask
Version: 0.04
Severity: important

after appending 'session optional pam_umask.so umask=002' to
/etc/pam.d/common-session, i get the following results when creating a
directory and a file inside it in my home directory, with different applications:

* remote ssh
drwxrwxr-x 2 jeroen jeroen 4096 May  3 23:25 ssh
-rw-rw-r-- 1 jeroen jeroen    0 May  3 23:25 file.txt

this works; both the directory and the file have the permissions i
expected. (removed umask settings from ~/.bash-profile and /etc/profile,
and checked that /etc/login.defs doesn't set a umask.)

* local gnome terminal
drwxr-xr-x 2 jeroen jeroen 4096 May  3 23:56 gnome-terminal
-rw-r--r-- 1 jeroen jeroen    0 May  3 23:56 file.txt

* gedit
drwxr-xr-x 2 jeroen jeroen 4096 May  4 00:00 gedit
rw-r--r-- 1 jeroen jeroen     0 May  4 00:00 file.txt

* nautilus
drwxr-xr-x 2 jeroen jeroen 4096 May  4 00:03 nautilus
-rw------- 1 jeroen jeroen    0 May  4 00:03 file.txt

above three don't work; both the directory and the file are missing the group
writable bit, and the file created in nautilus is also missing the
readable bit for group and other. (checked that /etc/pam.d/gdm @includes
common-session.)

* remote ftp
drwxrwxrwx  2 jeroen jeroen 4096 May 18 18:42 ftp
-rw-rw-rw-  1 jeroen jeroen    0 May 18 18:42 file.txt

this doesn't work; both the directory and the file should have the
writable bit for other removed. (restarted ftpd with '... /usr/sbin/in.ftpd -u000' from inetd.conf. appended '@include common-session' to /etc/pam.d/ftp.)

i can find no other bugreports for libpam-umask not working as expected.
am i missing something?

-- System Information:
Debian Release: testing/unstable
  APT prefers unstable
  APT policy: (999, 'unstable'), (500, 'stable')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.13.4
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)

Versions of packages libpam-umask depends on:
ii  libc6                         2.3.6-5    GNU C Library: Shared libraries an

libpam-umask recommends no packages.

-- no debconf information



Information forwarded to debian-bugs-dist@lists.debian.org, Tollef Fog Heen <tfheen@debian.org>:
Bug#368080; Package libpam-umask. (full text, mbox, link).


Acknowledgement sent to Tollef Fog Heen <tfheen@err.no>:
Extra info received and forwarded to list. Copy sent to Tollef Fog Heen <tfheen@debian.org>. (full text, mbox, link).


Message #10 received at 368080@bugs.debian.org (full text, mbox, reply):

From: Tollef Fog Heen <tfheen@err.no>
To: Jeroen van Gorkum <jeroen@vangorkum.com>, 368080@bugs.debian.org
Subject: Re: Bug#368080: libpam-umask: doesn't seem to work for sessions other than remote ssh
Date: Tue, 13 Jun 2006 06:56:19 +0200
reassign 368080 gdm
retitle 368080 gdm: changes umask when logging in
thanks

Jeroen van Gorkum skrev:

> * local gnome terminal
> drwxr-xr-x 2 jeroen jeroen 4096 May  3 23:56 gnome-terminal
> -rw-r--r-- 1 jeroen jeroen    0 May  3 23:56 file.txt
> 
> * gedit
> drwxr-xr-x 2 jeroen jeroen 4096 May  4 00:00 gedit
> rw-r--r-- 1 jeroen jeroen     0 May  4 00:00 file.txt
> 
> * nautilus
> drwxr-xr-x 2 jeroen jeroen 4096 May  4 00:03 nautilus
> -rw------- 1 jeroen jeroen    0 May  4 00:03 file.txt
> 
> above three don't work; both the directory and the file are missing the group
> writable bit, and the file created in nautilus is also missing the
> readable bit for group and other. (checked that /etc/pam.d/gdm @includes
> common-session.)

gdm overrides the umask set by libpam-umask.  Reassigning.

- tfheen




Bug reassigned from package `libpam-umask' to `gdm'. Request was from Tollef Fog Heen <tfheen@err.no> to control@bugs.debian.org. (full text, mbox, link).


Changed Bug title. Request was from Tollef Fog Heen <tfheen@err.no> to control@bugs.debian.org. (full text, mbox, link).


Information forwarded to debian-bugs-dist@lists.debian.org, Ryan Murray <rmurray@debian.org>:
Bug#368080; Package gdm. (full text, mbox, link).


Acknowledgement sent to Sam Morris <sam@robots.org.uk>:
Extra info received and forwarded to list. Copy sent to Ryan Murray <rmurray@debian.org>. (full text, mbox, link).


Message #19 received at 368080@bugs.debian.org (full text, mbox, reply):

From: Sam Morris <sam@robots.org.uk>
To: 368080@bugs.debian.org
Cc: control@bugs.debian.org
Subject: Reported upstream
Date: Sun, 30 Jul 2006 02:10:00 +0100
package gdm
bts forwarded 368080 http://bugzilla.gnome.org/show_bug.cgi?id=305931
thanks

At least according to upstream, we are doing it all wrong:

"I just talked about this bug with Gary Winiger, who is the expert at Sun
regarding PAM.  He states that PAM should not be used for setting umask, and
that using $HOME/.profile or the system-wide /etc/profile is the appropriate
place for setting system-wide and user-specific umask settings."

Debian's GDM package has its own Xsession that doesn't touch
/etc/profile or ~/.profile... :(

-- 
Sam Morris
http://robots.org.uk/

PGP key id 1024D/5EA01078
3412 EA18 1277 354B 991B  C869 B219 7FDB 5EA0 1078



Noted your statement that Bug has been forwarded to http://bugzilla.gnome.org/show_bug.cgi?id=305931. Request was from Sam Morris <sam@robots.org.uk> to control@bugs.debian.org. (full text, mbox, link).


Forcibly Merged 314791 321620 336214 368080. Request was from Sam Morris <sam@robots.org.uk> to control@bugs.debian.org. (full text, mbox, link).


Tags removed: pending Request was from Sam Morris <sam@robots.org.uk> to control@bugs.debian.org. (full text, mbox, link).


Added tag(s) fixed-upstream. Request was from bts-link-upstream@lists.alioth.debian.org to control@bugs.debian.org. (Mon, 07 Jun 2010 16:36:15 GMT) (full text, mbox, link).


Message #28 received at 314791-done@bugs.debian.org (full text, mbox, reply):

From: Andreas Beckmann <anbe@debian.org>
To: 741610-done@bugs.debian.org, 609417-done@bugs.debian.org, 261150-done@bugs.debian.org, 578765-done@bugs.debian.org, 607138-done@bugs.debian.org, 619800-done@bugs.debian.org, 624137-done@bugs.debian.org, 647230-done@bugs.debian.org, 665758-done@bugs.debian.org, 683815-done@bugs.debian.org, 689660-done@bugs.debian.org, 689662-done@bugs.debian.org, 314791-done@bugs.debian.org, 420596-done@bugs.debian.org, 551802-done@bugs.debian.org, 289641-done@bugs.debian.org, 301594-done@bugs.debian.org, 303346-done@bugs.debian.org, 308992-done@bugs.debian.org, 367117-done@bugs.debian.org, 409647-done@bugs.debian.org, 470576-done@bugs.debian.org, 340767-done@bugs.debian.org, 346424-done@bugs.debian.org, 63681-done@bugs.debian.org, 82180-done@bugs.debian.org, 125929-done@bugs.debian.org, 250343-done@bugs.debian.org, 377478-done@bugs.debian.org, 428617-done@bugs.debian.org, 430063-done@bugs.debian.org, 449325-done@bugs.debian.org, 463263-done@bugs.debian.org
Subject: gdm has been superseded by gdm3
Date: Sun, 3 Jul 2016 22:07:39 +0200
Version: 2.20.11-4+rm

gdm was last released with Debian 6.0 (squeeze) in
February 2011 and removed from Debian sid/unstable in 2011 (see
http://bugs.debian.org/613491 for details on the removal). Since
support for squeeze and squeeze-LTS has now ended, I'm closing all the
remaining bugs reported against this package.


Andreas



Bug archived. Request was from Debbugs Internal Request <owner@bugs.debian.org> to internal_control@bugs.debian.org. (Mon, 01 Aug 2016 07:29:54 GMT) (full text, mbox, link).


Send a report that this bug log contains spam.


Debian bug tracking system administrator <owner@bugs.debian.org>. Last modified: Fri Jan 23 19:42:03 2026; Machine Name: buxtehude

Debian Bug tracking system

Debbugs is free software and licensed under the terms of the GNU General Public License version 2. The current version can be obtained from https://bugs.debian.org/debbugs-source/.

Copyright © 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson, 2005-2017 Don Armstrong, and many other contributors.