Bug#599897: cron: /etc/default/locale may miss
Hi Christian, I cannot reproduce this. When pam_env cannot find this file, it is simply ignored. You're right and there is no bug. Here was my poor reasoning: 1. My root crontabs aren't executed 2. When i downgrade cron to 3.0pl1-108, they are. 3. Changelog is talking about /etc/default/locale in 3.0pl1-114 and i miss this file Hum... The solution to my problem is that since 3.0pl1-109, /etc/init.d.cron inititializes the TZ environment variable with /etc/timezone which contains by default Etc/UTC. In fact my crontabs were executed 2 hours later (because my localtime is UTC+2). I'm not used to inititialize /etc/timezone when i install a workstation (just /etc/localtime). Please, accept my apologies. -- David -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Bug#599897: cron: /etc/default/locale may miss
Package: cron Version: 3.0pl1-114 Severity: minor Extract from /usr/share/doc/cron/changelog.Debian.gz: * debian/cron.pam: - In addition to the reading /etc/security/pam_env.conf and /etc/environment (obsolete config file) previous default, cron will now also read /etc/default/locale in order to setup the proper localisation environment for tasks. When you install automatically some workstations with the debootstrap command for example, the cron package will be installed (Priority: important). The locales package is not mandatory so the configuration file /etc/default/locale may miss, and cron do not execute any script from now. I suggest to replace in /etc/pam.d/cron: session required pam_env.so envfile=/etc/default/locale by: session optional pam_env.so envfile=/etc/default/locale Thanks. -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Bug#599897: cron: /etc/default/locale may miss
tag 599895 + unreproducible thanks Hi David, On 10/12/2010 09:55 AM, David Delon wrote: Extract from /usr/share/doc/cron/changelog.Debian.gz: * debian/cron.pam: - In addition to the reading /etc/security/pam_env.conf and /etc/environment (obsolete config file) previous default, cron will now also read /etc/default/locale in order to setup the proper localisation environment for tasks. When you install automatically some workstations with the debootstrap command for example, the cron package will be installed (Priority: important). The locales package is not mandatory so the configuration file /etc/default/locale may miss, and cron do not execute any script from now. I cannot reproduce this. When pam_env cannot find this file, it is simply ignored. Could you please post some additional details on what exactly is failing, eg the relevant crontab? I suggest to replace in /etc/pam.d/cron: session required pam_env.so envfile=/etc/default/locale by: session optional pam_env.so envfile=/etc/default/locale The first approach is the one taken by other packages as well, eg: login, sshd, su (with login being Priority: required). Christian signature.asc Description: OpenPGP digital signature