Cronjob: Could not authenticate PAM user ... Authentication failure (for root?!?)
This is what /var/log/messages says:
Code:
Jan 8 17:37:00 wodenhof fcron[3026]: pam_warn(fcron:auth): function=[pam_sm_authenticate] service=[fcron] terminal=[<unknown>] user=[root] ruser=[<unknown>] rhost=[<unknown>] I'm simply lost here. These are all root's programs, what is PAM doing, or rather what did I overlook? |
Really nobody with any clue? :(
|
Okay, I found it out for myself and with the generous help of the original author:
PAM is an infrastructure for programs to use for authentication of programs quasi like logging on without user interference. The program in question (fcron in this case) looks for /etc/pam.conf or /etc/pam.d/<program>. In this file (only one is used, /etc/pam.conf will be disregarded when /etc/pam.d/ is present), the needed modules of (PAM) and their actions are defined. I simply copied cron's PAM-file to /etc/pam.d/fcron and voilą ... bingo and fcron running its chores. Explanation: The maintainer of fcron wrote: "...since a few version fcron installs by default in /usr/local and not in / to make it more standard. Thus the pam configuration is probably installed in /usr/local/etc/ and not in /etc on your system, and I guess it is not applied because of that. You can do something as "configure --sysconfdir=/etc" to change that." That's exactly what had happened, I found a /usr/local/etc/pam.conf which I converted to /etc/pam.d/fcron (needs editing!) and that was that. |
Pam Authentication failure
I Am stuck up in same problem But In my case there is no fcron entry in pam.d directory . All fcron files and pam.conf file are there in /etc. I Got four files and one directory after installing.
Files fcron.deny fcron.conf fcron.allow pam.conf Dir pam.d But no entry for fcron in this directory to copy conf file. |
What is the exact error message and what are the contents of /etc/pam.conf and /etc/fcron.conf?
|
same problem
Hello,
I would like try Fcron, but it's don't work. Installation done without error but tasks are not executed. syslog error : Code:
fcrontab[12528]: Could not authenticate user using PAM (4): System error Code:
# Code:
# Code:
# ---------------------------------------------------------------------------# Any idea? Thank you. |
it's solve... when i wrote the post, i noticed i installed the version fcron_3.0.1-1_amd64.deb 2006-10-12 16:02 259K instead of the newest fcron_3.0.1-1.3_amd64.deb 2008-10-29 17:17 261K. i installed fcron_3.0.1-1.3_amd64.deb and now it's work ^^' done.
|
Okay, good. Sorry for coming late, I found your post(s) only now :).
But I think some (most? all?) features of fcron are now included in the normal cron (at least with openSUSE tumbleweed). |
oh? i'm not inform about an update of cron. personally i wanted to try Fcron for execute some scripts hourly/daily/montly at precises times (0h30 am, 4am) if the computer is on, or if computer off at these hours, start them when it's on. cron and anacron seemed incomplete.
|
Yeah, when I was home I checked the man pages. You are right, there is no change of cron I found, either. But. I use "backintime" for backups. The programm allows the user to automatically start a run after login. I presumed that was done with cron, after this I'm not sure anymore. As for the rest, SUSE has some subdirectories like cron.hourly or cron. weekly etc. which offer some functionality of fcron. If you want tight control, using fcron will be the better choice, I think.
|
fine thx.
other thing, i check my syslog and see that Code:
Mar 14 04:03:03 *** fcron[14989]: Job sh "/long/path.sh" >> "/long/path (truncated) |
No idea, sorry. Anybody else,please?
|
All times are GMT -5. The time now is 10:39 PM. |