Help me on Cron job error
Hello,
Im new here and beginner on CentOS so helps are appreciated, The problem is that everytime when a cronjob run I get this error on the log: Code:
Sep 25 22:29:01 host crond[1821]: Cannot make/remove an entry for the specified session And the same script was running fine on another hosting. update: here is what /var/log/secure log file show: Quote:
|
Quote:
Post the script and we might be able to help. |
Quote:
and here is the PAM configuration for cron: Code:
# |
Start by removing "pam_winbind.so" from /etc/pam.d/system-auth?
|
Quote:
How can I remove the crond package and reinstall it ? |
Quote:
Quote:
|
Quote:
the /var/log/secure show everytime cron job is launched: Code:
Sep 26 13:37:01 host crond[23327]: PAM unable to resolve symbol: pam_sm_acct_mgmt Code:
Sep 25 22:29:01 host crond[1821]: Cannot make/remove an entry for the specified session |
Quote:
What kernel are you running? Code:
uname -a Code:
rpm --nodeps --noscripts -vV $(rpm --qf="%{NAME}\n" -qf /etc/pam.d/*|grep -v owned|sort -u)|\ Quote:
|
Quote:
The cron log still show the same error: Code:
Sep 26 16:18:01 host crond[9092]: Cannot make/remove an entry for the specified session uname -a return : Code:
Linux host.****.com 2.6.32-5-vserver-amd64 #1 SMP Sun May 6 06:53:58 UTC 2012 x86_64 x86_64 x86_64 GNU/Linux Code:
#%PAM-1.0 Quote:
|
Hello guys, good news :)
I managed to resolve the problem, only by commenting any line with "session required pam_loginuid.so" on the files in /etc/pam.d/ Code:
/etc/pam.d/crond:session required pam_loginuid.so |
All times are GMT -5. The time now is 12:47 AM. |