After updating the pam packages to the new version in testing
(0.79-4 => 0.99.7.1-4), I get error messages in /var/log/auth.log
about a missing file /etc/environment.
I don't know which package creates this file or if it's intended to
exist on all debian systems. But it is indeed not there on all my
systems and pam seems to rely on it from now on.
The error messages go away with "touch /etc/environment", but maybe
some care should be taken in the package to avoid tons of useless log
messages.
Extract from /var/log/auth.log:
Sep 11 20:03:31 rei su[20924]: (pam_unix) session opened for user root by (uid=0)
Sep 11 20:09:01 rei CRON[21108]: (pam_unix) session opened for user root by (uid=0)
Sep 11 20:09:01 rei CRON[21108]: (pam_unix) session closed for user root
Sep 11 20:10:01 rei CRON[21136]: (pam_unix) session opened for user mic by (uid=0)
Sep 11 20:10:01 rei CRON[21136]: (pam_unix) session closed for user mic
Sep 11 20:17:01 rei CRON[21152]: (pam_unix) session opened for user root by (uid=0)
Sep 11 20:17:01 rei CRON[21152]: (pam_unix) session closed for user root
Sep 11 20:20:01 rei CRON[21169]: (pam_unix) session opened for user mic by (uid=0)
Sep 11 20:20:02 rei CRON[21169]: (pam_unix) session closed for user mic
Sep 11 20:28:08 rei smbd[17228]: (pam_unix) session closed for user mic
Sep 11 20:28:10 rei smbd[21278]: (pam_unix) session opened for user mic by (uid=0)
Sep 11 20:28:27 rei sshd[18714]: (pam_unix) session closed for user mic
Sep 11 20:30:01 rei CRON[21989]: pam_unix(cron:session): session opened for user mic by (uid=0)
Sep 11 20:30:01 rei CRON[21989]: pam_env(cron:setcred): Unable to open env file: /etc/environment: No such file or directory
Sep 11 20:30:01 rei CRON[21989]: pam_env(cron:setcred): Unable to open env file: /etc/environment: No such file or directory
Sep 11 20:30:01 rei CRON[21989]: pam_unix(cron:session): session closed for user mic
Sep 11 20:30:58 rei sshd[22002]: Accepted publickey for root from [...]
Sep 11 20:30:58 rei sshd[22002]: pam_env(ssh:setcred): Unable to open env file: /etc/environment: No such file or directory
Sep 11 20:30:58 rei sshd[22004]: pam_unix(ssh:session): session opened for user root by (uid=0)
Sep 11 20:30:58 rei sshd[22004]: pam_env(ssh:setcred): Unable to open env file: /etc/environment: No such file or directory
Sep 11 20:30:59 rei sshd[22002]: pam_env(ssh:setcred): Unable to open env file: /etc/environment: No such file or directory
Sep 11 20:31:03 rei sshd[22015]: Accepted publickey for root from [...]
Sep 11 20:31:04 rei sshd[22015]: pam_env(ssh:setcred): Unable to open env file: /etc/environment: No such file or directory
Sep 11 20:31:04 rei sshd[22017]: pam_unix(ssh:session): session opened for user root by (uid=0)
Sep 11 20:31:04 rei sshd[22017]: pam_env(ssh:setcred): Unable to open env file: /etc/environment: No such file or directory
Sep 11 20:31:04 rei sshd[22015]: pam_env(ssh:setcred): Unable to open env file: /etc/environment: No such file or directory
Sep 11 20:31:05 rei su[20924]: (pam_unix) session closed for user root
Upgrade log:
Aptitude 0.4.6.1: log report
Tue, Sep 11 2007 20:05:26 +0200
IMPORTANT: this log only lists intended actions; actions which fail due to
dpkg problems may not be completed.
Will install 8 packages, and remove 0 packages.
602kB of disk space will be used
===============================================================================
[HOLD] bacula
[HOLD] bacula-client
[HOLD] bacula-common
[HOLD] bacula-console
[HOLD] bacula-director-common
[HOLD] bacula-director-sqlite3
[HOLD] bacula-fd
[HOLD] bacula-sd
[HOLD] bacula-sd-sqlite3
[HOLD] bacula-server
[UPGRADE] adduser 3.104 -> 3.105
[UPGRADE] base-passwd 3.5.12 -> 3.5.13
[UPGRADE] libpam-modules 0.79-4 -> 0.99.7.1-4
[UPGRADE] libpam-runtime 0.79-4 -> 0.99.7.1-4
[UPGRADE] libpam0g 0.79-4 -> 0.99.7.1-4
[UPGRADE] libpango1.0-0 1.16.5-1 -> 1.18.1-1
[UPGRADE] libpango1.0-common 1.16.5-1 -> 1.18.1-1
[UPGRADE] libparse-debianchangelog-perl 1.1-1 -> 1.1.1-1
===============================================================================
Regards,
Michel
-- System Information:
Debian Release: lenny/sid
APT prefers testing
APT policy: (990, 'testing'), (500, 'unstable'), (500, 'stable'), (1, 'experimental')
Architecture: i386 (i686)
Kernel: Linux 2.6.21-2-686 (SMP w/1 CPU core)
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash
Versions of packages libpam-modules depends on:
ii libc6 2.6.1-1+b1 GNU C Library: Shared libraries
ii libcap1 1:1.10-14 support for getting/setting POSIX.
ii libdb4.6 4.6.19-1 Berkeley v4.6 Database Libraries [
ii libpam0g 0.99.7.1-4 Pluggable Authentication Modules l
ii libselinux1 2.0.15-2+b1 SELinux shared libraries
libpam-modules recommends no packages.
-- no debconf information
--
To UNSUBSCRIBE, email to debian-bugs-...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listm...@lists.debian.org
On Wed, Sep 12, 2007 at 07:53:39PM +0200, Michel Messerschmidt wrote:
> After updating the pam packages to the new version in testing
> (0.79-4 => 0.99.7.1-4), I get error messages in /var/log/auth.log
> about a missing file /etc/environment.
> I don't know which package creates this file or if it's intended to
> exist on all debian systems. But it is indeed not there on all my
> systems and pam seems to rely on it from now on.
> The error messages go away with "touch /etc/environment", but maybe
> some care should be taken in the package to avoid tons of useless log
> messages.
With what version of Debian was this system originally installed? The
locales package in Debian has created /etc/environment on install since
2002, so AFAIK it should be available on most systems installed with sarge
or later, and I believe it should be available on many systems installed
with woody.
But yes, nothing guarantees the creation of the file, so it's best if the
pam packages take responsibility for this on install.
Cheers,
--
Steve Langasek Give me a lever long enough and a Free OS
Debian Developer to set it on, and I can move the world.
vor...@debian.org http://www.debian.org/
Steve Langasek <vor...@debian.org> wrote:
> On Wed, Sep 12, 2007 at 07:53:39PM +0200, Michel Messerschmidt wrote:
> > After updating the pam packages to the new version in testing
> > (0.79-4 => 0.99.7.1-4), I get error messages in /var/log/auth.log
> > about a missing file /etc/environment.
Yes, me too! Two every 5 minutes (whenever www-data does something from
cron). For example:
Nov 11 09:20:01 olgas CRON[24126]: pam_unix(cron:session): session opened for user www-data by (uid=0)
Nov 11 09:20:01 olgas CRON[24126]: pam_env(cron:setcred): Unable to open env file: /etc/environment: No such file or directory
Nov 11 09:20:01 olgas CRON[24126]: pam_env(cron:setcred): Unable to open env file: /etc/environment: No such file or directory
Nov 11 09:20:01 olgas CRON[24126]: pam_unix(cron:session): session closed for user www-data
> > The error messages go away with "touch /etc/environment",
This worked for me too.
> With what version of Debian was this system originally installed?
I installed lenny onto an empty disk using a lenny installer yesterday.
-- System Information:
Debian Release: lenny/sid
APT prefers testing
APT policy: (600, 'testing'), (80, 'unstable'), (1, 'experimental')
Architecture: i386 (i686)
Kernel: Linux 2.6.22-2-686 (SMP w/1 CPU core)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=ANSI_X3.4-1968) (ignored: LC_ALL set to C)
Shell: /bin/sh linked to /bin/bash
Versions of packages libpam-modules depends on:
ii libc6 2.6.1-1+b1 GNU C Library: Shared libraries
ii libdb4.6 4.6.19-1 Berkeley v4.6 Database Libraries [
ii libpam0g 0.99.7.1-5 Pluggable Authentication Modules l
ii libselinux1 2.0.15-2+b1 SELinux shared libraries
libpam-modules recommends no packages.
-- no debconf information
--
Bill Wohler <woh...@newt.com> http://www.newt.com/wohler/ GnuPG ID:610BD9AD