Bug 453097
Summary: | pam_listfile doesn't work for crond | ||
---|---|---|---|
Product: | Red Hat Enterprise Linux 5 | Reporter: | Qian Shen <qshen> |
Component: | crontabs | Assignee: | Marcela Mašláňová <mmaslano> |
Status: | CLOSED NOTABUG | QA Contact: | Brock Organ <borgan> |
Severity: | low | Docs Contact: | |
Priority: | low | ||
Version: | 5.2 | CC: | mzhan |
Target Milestone: | rc | ||
Target Release: | --- | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2008-06-27 15:02:48 UTC | Type: | --- |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
Qian Shen
2008-06-27 09:10:02 UTC
You need at first line in /etc/pam.d/crond this: account required pam_listfile.so onerr=fail item=user sense=allow file=/tmp/listfile It can't be working with auth. Hi Marcela, it's surprised that pam_listfile can't work with crond in auth. From man pam_listfile, I get: # # deny ftp-access to users listed in the /etc/ftpusers file # auth required pam_listfile.so \ onerr=succeed item=user sense=deny file=/etc/ftpusers So pam_listfile can work with ftp in auth. I don't know why pam_listfile can't work with crond in auth? Because crond doesn't use auth at all. As the cron jobs are running in the background it makes no sense to call authentication functions - there would be no way to supply a password to modules etc. |