pam_mount prevents cron from working (Debian sarge)
Hi,
I am using pam_mount to mount my university network drive
automatically each time I log in to my linux box.
I recently discovered that since I changed the pam configuration to
include pam_mount, none of the predefined cron jobs and no user cron
jobs were executed anymore.
---
I get error messages in /var/log/auth.log saying:
Sep 4 17:37:01 localhost CRON[6621]: pam_mount: error trying to
retrieve authtok from auth code
---
Also cron sends an email after executing cron.daily (via anacron):
Envelope-to: root@localhost.localdomain
Delivery-date: Sun, 04 Sep 2005 17:33:31 +0100
From: Anacron <root@localhost.localdomain>
To: root@localhost.localdomain
Subject: Anacron job 'cron.daily' on host-188-13
/etc/cron.daily/dwww:
pam_mount: error trying to retrieve authtok from auth code
reenter password:pam_mount: path to luserconf set to /var/www/.pam_mount.conf
pam_mount: reading options_deny...
pam_mount: back from global readconfig
pam_mount: /var/www/.pam_mount.conf does not exist or is not owned by user
pam_mount: no volumes to mount
pam_mount: real and effective user ID are 0 and 0.
pam_mount: clean system authtok (0)
pam_mount: command: /usr/sbin/pmvarrun -u www-data -d -o 1
pam_mount: setting uid to 0
pam_mount: real and effective user ID are 0 and 0.
pam_mount: real and effective group ID are 33 and 33.
pam_mount: pmvarrun says login count is 1
pam_mount: done opening session
pam_mount: user is www-data
pam_mount: error trying to retrieve authtok from auth code
pam_mount: enter read_password
reenter password:pam_mount: path to luserconf set to /var/www/.pam_mount.conf
pam_mount: reading options_deny...
pam_mount: back from global readconfig
pam_mount: /var/www/.pam_mount.conf does not exist or is not owned by user
pam_mount: no volumes to mount
pam_mount: real and effective user ID are 0 and 0.
pam_mount: clean system authtok (0)
pam_mount: command: /usr/sbin/pmvarrun -u www-data -d -o 1
pam_mount: setting uid to 0
pam_mount: real and effective user ID are 0 and 0.
pam_mount: real and effective group ID are 33 and 33.
pam_mount: pmvarrun says login count is 2
pam_mount: done opening session
---
Thank you for any help,
Alexander Pohl
Reply to: