Hi Everyone,
I am still an openSUSE noob and have been struggeling to get cron jobs running for the past couple of hours…without having success :shame:
Hopefully a more experienced user can give me a hand
As root I used crontab to setup some cron jobs:
crontab -u api-cebian -e
The resulting cronjob looks like this:
# DO NOT EDIT THIS FILE - edit the master and reinstall.
# (/tmp/crontab.XXXXuilrnn installed on Sun Oct 10 23:59:07 2010)
# (Cron version V5.0 -- $Id: crontab.c,v 1.12 2004/01/23 18:56:42 vixie Exp $)
MAILTO=XXXXXXXXXXX
50 8 * * * cd /srv/www/vhosts/XXXXXXXX/private/reportcreator/esw ; php createreports.php &>/dev/null
The command is tested and working. The script and its related directories have the
correct permission & ownership. But the related cronjob does not run.
The user has a login including password.
# tail /etc/passwd
uucp:x:10:14:Unix-to-Unix CoPy system:/etc/uucp:/bin/bash
uuidd:x:102:104:User for uuidd:/var/run/uuidd:/bin/false
wwwrun:x:30:8:WWW daemon apache:/var/lib/wwwrun:/bin/false
api-cebian:x:1004:8:api-cebian:/srv/www/vhosts/api.cebian.net:/bin/false
Here is a related log message (/var/messages):
/usr/sbin/cron[6888]: Permission denied
crontab itself has the following permissions:
# l /usr/bin/crontab
-rwsr-xr-x 1 root trusted 40432 2010-07-05 13:56 /usr/bin/crontab*
There is no cron.allow or crontab.allow or crontab.deny. The cron.deny looks like this:
# cat /etc/cron.deny
guest
gast
I figured out that my permission problem is probably due to pam, but I was just not
able to figure out how to make the proper settings
Here is the related /etc/pam.d/crond:
#
# The PAM configuration file for the cron daemon
#
#
auth sufficient pam_rootok.so
auth include common-auth
account include common-account
password include common-password
session required pam_loginuid.so
session include common-session
I am running openSUSE 11.3 64bit
Hope someone can help me or give me a hint, if there is some important info
missing I will glad to provide it…thanks in advance