Re: cron.d ergibt nur permission denied
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Jens Schüßler wrote:
> * Lars Schimmer <l.schimmer@cgv.tugraz.at> wrote:
>> Hi!
>>
>> Ich habe heute entdeckt, das mein System einen größeren cron.d Bug hat.
>> Alle cron.d Ereignisse werden im syslog als Permission denied aufgeführt.
>>
>> Laut ps aux läuft cron als root.
>> Starte ich die Aufrufe aus /etc/cron.d/ in einer Root-shell, dann laufen
>> sie problemlos durch.
>>
>> Hat einer einen Tip, was ich machen kann?
>
> Mal die genauen Fehlermeldungen hier posten, damit man sieht welche
> Berechtigungen von was und wo nicht stimmen sollen?
Hab etwas weiter geforscht, alle Aufrufe in der crontab werden nciht
asugeführt :-(
# /etc/crontab: system-wide crontab
# Unlike any other crontab you don't have to run the `crontab'
# command to install the new version when you edit this file.
# This file also has a username field, that none of the other crontabs do.
#
SHELL=/bin/bash
PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
#
# m h dom mon dow user command
17 * * * * root run-parts --report /etc/cron.hourly
28 5 * * * root test -x /usr/sbin/anacron || run-parts --report
/etc/cron.daily
47 6 * * 7 root test -x /usr/sbin/anacron || run-parts --report
/etc/cron.weekly
52 6 1 * * root test -x /usr/sbin/anacron || run-parts --report
/etc/cron.monthly
22 * * * * root echo echo >>/tmp/test2.txt
ls -l /etc/ |grep cron
- -rw-r--r-- 1 root root 395 2008-03-10 02:14 anacrontab
drwxr-xr-x 2 root root 4096 2008-11-24 17:14 cron.d
drwxr-xr-x 2 root root 4096 2008-11-24 17:14 cron.daily
drwxr-xr-x 2 root root 4096 2008-11-24 17:14 cron.hourly
drwxr-xr-x 2 root root 4096 2008-11-24 17:14 cron.monthly
- -rw-r--r-- 1 root root 653 2008-11-24 17:20 crontab
drwxr-xr-x 2 root root 4096 2008-11-24 17:14 cron.weekly
- -rw-r--r-- 1 root root 93 2008-10-27 15:15 cvs-cron.conf
cat /var/log/syslog
Nov 24 17:22:01 tetris CRON[14541]: Permission denied
Nov 24 17:22:01 tetris CRON[14540]: Permission denied
Nov 24 17:22:01 tetris CRON[14542]: Permission denied
Nov 24 17:25:01 tetris CRON[15176]: Permission denied
Nov 24 17:25:01 tetris CRON[15175]: Permission denied
Egal was ich mache, immer nur ein Permission denied im SysLog.
ps aux f |grep cron
root 15472 0.0 0.0 5856 764 pts/9 S+ 17:27 0:00 | |
\_ grep cron
root 13780 0.0 0.0 20528 1056 ? Ss 17:14 0:00
/usr/sbin/cron -L 2
Ich steh vor einem Rätsel...
> Gruß
> Jens
>
>
MfG,
Lars Schimmer
- --
- -------------------------------------------------------------
TU Graz, Institut für ComputerGraphik & WissensVisualisierung
Tel: +43 316 873-5405 E-Mail: l.schimmer@cgv.tugraz.at
Fax: +43 316 873-5402 PGP-Key-ID: 0x4A9B1723
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iEYEARECAAYFAkkq1h0ACgkQmWhuE0qbFyMUPACgj8IvMGUQfFpMSzm7uohKvj7x
44AAn3zupfpThF6C3sw7S8mkH94QIBGJ
=0V+o
-----END PGP SIGNATURE-----
Reply to: