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).
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).
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).
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
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).
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).
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/.