[Bug 558409] New: Cron not processing tasks, "permission denied" in logs
http://bugzilla.novell.com/show_bug.cgi?id=558409 http://bugzilla.novell.com/show_bug.cgi?id=558409#c0 Summary: Cron not processing tasks, "permission denied" in logs Classification: openSUSE Product: openSUSE 11.2 Version: Final Platform: x86-64 OS/Version: openSUSE 11.2 Status: NEW Severity: Normal Priority: P5 - None Component: Basesystem AssignedTo: bnc-team-screening@forge.provo.novell.com ReportedBy: marty@supine.com QAContact: qa@suse.de Found By: --- Blocker: --- User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-GB; rv:1.9.1.4) Gecko/20091016 SUSE/3.5.4-1.1.2 Firefox/3.5.4 A users crontab is succesfully installed but crond is not processing it. Crontab looks like: 40 * * * * /usr/local/rancid/bin/rancid-run
From /var/log/messages:
Nov 25 16:40:01 ws5-72-fra /usr/sbin/cron[490]: Permission denied If I run crond in debug mode all I get is: user [rancid:1001:1000:...] cmd="/usr/local/rancid/bin/rancid-run" [506] do_command(/usr/local/rancid/bin/rancid-run, (rancid,1001,1000)) [508] child_process('/usr/local/rancid/bin/rancid-run') [506] main process returning to work [506] Target time=1259167260, sec-to-wait=60 Permission denied [506] sigchld...pid #508 died, stat=1 [506] sigchld...no children User is in /etc/cron.allow That command runs fine from the commandline. Reproducible: Always Steps to Reproduce: 1. Add command to crontab 2. Wait for it's scheduled time Actual Results: Command doesn't run, error in logs. Expected Results: Command runs as scheduled. This is a recently installed 11.2 from the official boxed DVD. -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=558409
http://bugzilla.novell.com/show_bug.cgi?id=558409#c
shuang qiu
http://bugzilla.novell.com/show_bug.cgi?id=558409
http://bugzilla.novell.com/show_bug.cgi?id=558409#c1
Michal Seben
http://bugzilla.novell.com/show_bug.cgi?id=558409
http://bugzilla.novell.com/show_bug.cgi?id=558409#c2
--- Comment #2 from Martin Barry
could you please attach whole /var/log/messages?
You really want the whole thing? This snippet is me adding the below test and it failing. Dec 15 16:04:07 ws5-72-fra crontab[677]: (rancid) BEGIN EDIT (rancid) Dec 15 16:04:18 ws5-72-fra crontab[677]: (rancid) REPLACE (rancid) Dec 15 16:04:18 ws5-72-fra crontab[677]: (rancid) END EDIT (rancid) Dec 15 16:05:01 ws5-72-fra /usr/sbin/cron[520]: (rancid) RELOAD (tabs/rancid) Dec 15 16:05:01 ws5-72-fra /usr/sbin/cron[686]: Permission denied Dec 15 16:06:01 ws5-72-fra /usr/sbin/cron[692]: Permission denied
do you have same issue also with e.g ? : */1 * * * * echo "test"
Yes, for the user rancid. Crontab for root and the user marty works fine.
just for sure attach also : ll /usr/local/rancid/bin/rancid-run and ll /var/spool/cron/tabs/
# ll /usr/local/rancid/bin/rancid-run -rwxr-xr-x 1 rancid netadm 5109 2009-12-07 09:31 /usr/local/rancid/bin/rancid-run # ll /var/spool/cron/tabs/ total 12 -rw-r--r-- 1 root users 212 2009-11-19 17:03 marty -rw-r--r-- 1 root netadm 491 2009-11-26 08:40 rancid -rw-r--r-- 1 root root 226 2009-12-15 16:02 root # cat /etc/cron.allow marty rancid -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=558409
http://bugzilla.novell.com/show_bug.cgi?id=558409#c3
Martin Barry
http://bugzilla.novell.com/show_bug.cgi?id=558409
http://bugzilla.novell.com/show_bug.cgi?id=558409#c4
Martin Barry
http://bugzilla.novell.com/show_bug.cgi?id=558409
http://bugzilla.novell.com/show_bug.cgi?id=558409#c5
--- Comment #5 from Michal Seben
participants (1)
-
bugzilla_noreply@novell.com