Bug 146073 - cron fails with pam_access
Summary: cron fails with pam_access
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: vixie-cron
Version: 3
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Jason Vas Dias
QA Contact: Brock Organ
URL:
Whiteboard:
Depends On:
Blocks: 163882
TreeView+ depends on / blocked
 
Reported: 2005-01-25 05:55 UTC by Andrew Taylor
Modified: 2007-11-30 22:10 UTC (History)
2 users (show)

Fixed In Version: 4.1-21
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2005-09-05 08:24:06 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Andrew Taylor 2005-01-25 05:55:21 UTC
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.3)
Gecko/20041020

Description of problem:
When using the pam_access module, cron fails for user jobs.  In
particular, this shows up in the logs every time the cronjob should run:

pam_access[6093]: couldn't get the tty name
crond[6093]: Critical error - immediate abort

pam_access is enabled by (for example) adding the following to
/etc/pam.d/system_auth:
account     required      /lib/security/$ISA/pam_access.so
This causes the rules in /etc/security/access.conf will be enforced.

A google search turned up the issue, along with a possible resolution,
in debian linux: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=254845

Version-Release number of selected component (if applicable):
vixie-cron-4.1-20_FC3

How reproducible:
Always

Steps to Reproduce:
1. add "account required /lib/security/$ISA/pam_access.so" to
/etc/pam.d/system_auth
2. create a cronjob for a user
3. wait ;)
    

Actual Results:  The error is logged in /var/log/messages.

Expected Results:  The cronjob should have run.

Additional info:

Comment 1 Jason Vas Dias 2005-01-25 14:51:08 UTC
Yes, thanks - I'll fix this in the next release (vixie-cron-4.1-21_FC3).


Comment 2 Jason Vas Dias 2005-01-25 16:44:07 UTC
This is now done and fixed in vixie-cron-4.1-21_FC3, which will shortly
be pushed to FC3 updates. Meanwhile, you can download it from:
   http://people.redhat.com/~jvdias/CRON/FC3 


Comment 3 Andrew Taylor 2005-01-25 21:32:07 UTC
I've tested the new package, and can confirm it solves the problem. 
Thanks for the speedy resolution!


Comment 10 Jason Vas Dias 2005-07-20 18:07:49 UTC
This bug is fixed with vixie-cron-4.1-33+ (current release vixie-cron-4.1-36.EL4,
available from http://people.redhat.com/~jvdias/cron/RHEL-4/4.1-36.EL4/) and
is scheduled for release in RHEL-4-U2 .
 


Note You need to log in before you can comment on or make changes to this bug.