Could not open PAM session
This is what I get in /var/log/messages for a (f)cron job:
Code:
Jul 8 12:35:11 wodenhof fcron[4422]: Could not open PAM session for '/home/Nicht-SuSE/smartmon/HDtemp.sh': Cannot make/remove an entry for the specified session |
What OS? Off the top of my head: 1) it could be that your /etc/pam.d/crond rules are malformed (are other cronjobs working?); 2) it could be that you - or your OS - have enabled access control for cron via pam_access, and you're operating outside of the rules' requirements.
|
Hmm, that's rather complicated to understand. First, its SuSE 11.0 as stated in my user panel. AFAIK cron jobs (like beagle, updatedb...) are running. I can start the job (script) by hand and it works. I'll post the rules as soon as I get to that box.
This is fcron (http://fcron.free.fr/) which works with pam. How do I find out the rules' requirements? |
The default access list file should be noted in the manpages for pam_access(8). But I think I was barking up the wrong tree with that idea.
------- A quick google for your error message turned up a couple illuminating hits:
I'd be curious to see the contents of your /etc/pam.d/crond file, but even then may be unable to help. It might be worthwhile to track down and search Suse's bug db for other users reporting the same problem (presuming you are using a default configuration, and haven't been tinkering with PAM). |
Quote:
As for the links you provided, what kernel.org says is not pertinent since fcron worked for some time, so I'd hazard the guess, that the #define pragma is correctly set. The second link hints at an error in pam, I'll have to look at the SuSE site to find out whether it's the same here. The pam_permit.so situation according to my /etc/pam.d/fcron file: Code:
# Quote:
Thanks for your help. |
Okay, access.conf had comments only in its entire body. I appended
Code:
+ : fcron : NONE I also had a look at /var/lock/subsys/fcron. it is empty (0 Bytes) with rw-r--r-- permissions and root as owner and group. That of any help? |
Your access.conf should read (to allow all and eliminate it as a possible cause):
Code:
+ : ALL : ALL The original problem - Code:
Jul 8 12:35:11 wodenhof fcron[4422]: Could not open PAM session for '/home/Nicht-SuSE/smartmon/HDtemp.sh': Cannot make/remove an entry for the specified session Read this manpage (from the fcrontab project site): http://fcron.free.fr/doc/en/fcrontab.1.html Perhaps you need to add your username (or "all") to /usr/local/etc/fcron.allow? I would highly recommend again that you try to track this down in Suse's bug db, wherever that may be. If you haven't made changes to your default configuration, then surely others are running into the same issue. |
Quote:
Quote:
Code:
# The include statements refer to files like this: Code:
#%PAM-1.0 |
All times are GMT -5. The time now is 02:59 AM. |