Bekijk de volledige versie : Cron-Startmeldung "(*system*) BAD FILE MODE"
Hallo Leute,
mir ist aufgefallen, dass Cron beim Starten folgendes von sich gibt:
Dec 9 22:05:14 /opt/sbin/cron[218]: (*system*) BAD FILE MODE (/opt/etc/crontab)
weiss jemand, was das zu bedeuten hat?
Danke.
Gruß
Robert
Lies Mal man cron :)
Da findest du, dass /opt/etc/crontab die 600 Zugriffsrechte haben soll.
Danke für den Tipp, die Rechte standen natürlich auf 644. Man cron wirft bei mir nur eine leere Seite aus. Habe die Manpage dann im Internet gefunden, da stand aber nichts über chmod 600. Warum dürfen Group und Other keine Leserechte haben?
Gruß
Robert
Frag sich lieber warum du diese man Seite nicht lesen kannst :
al@wl500g/~> man cron
CRON(8)
NAME
cron - daemon to execute scheduled commands (ISC Cron V4.1)
SYNOPSIS
cron [-l load_avg] [-n]
DESCRIPTION
Cron should be started from /etc/rc or /etc/rc.local. It will return immediately, so you don't need to start it with '&'. The -n
option changes this default behavior causing it to run in the foreground. This can be useful when starting it out of init.
Cron searches /var/cron/tabs for crontab files which are named after accounts in /etc/passwd; crontabs found are loaded into memory.
Cron also searches for /etc/crontab which is in a different format (see crontab(5)). Cron then wakes up every minute, examining all
stored crontabs, checking each command to see if it should be run in the current minute. When executing commands, any output is mailed
to the owner of the crontab (or to the user named in the MAILTO environment variable in the crontab, if such exists).
Additionally, cron checks each minute to see if its spool directory's modtime (or the modtime on /etc/crontab) has changed, and if it
has, cron will then examine the modtime on all crontabs and reload those which have changed. Thus cron need not be restarted whenever
a crontab file is modified. Note that the Crontab(1) command updates the modtime of the spool directory whenever it changes a crontab.
Daylight Saving Time and other time changes
Local time changes of less than three hours, such as those caused by the start or end of Daylight Saving Time, are handled specially.
This only applies to jobs that run at a specific time and jobs that are run with a granularity greater than one hour. Jobs that run
more frequently are scheduled normally.
If time has moved forward, those jobs that would have run in the interval that has been skipped will be run immediately. Conversely,
if time has moved backward, care is taken to avoid running jobs twice.
Time changes of more than 3 hours are considered to be corrections to the clock or timezone, and the new time is used immediately.
SIGNALS
On receipt of a SIGHUP, the cron daemon will close and reopen its log file. This is useful in scripts which rotate and age log files.
Naturally this is not relevant if cron was built to use syslog(3).
CAVEATS
In this version of cron, /etc/crontab must not be readable or writable by any user other than root. In other words, it should be mode
0600.
SEE ALSO
crontab(1), crontab(5)
AUTHOR
Paul Vixie <vixie@isc.org>
4th Berkeley Distribution 10 January 1996" CRON(8)
Frag sich lieber warum du diese man Seite nicht lesen kannst...
Du kannst mir glauben, ich frage mich das schon die ganze Zeit. Und wenn ich eine Antwort darauf wüsste, würde ich mir auch antworten. Man ist selbstverständlich installiert. Kann aber erst morgen wieder danach schauen. Danke für die Manpage!
Gruß
Robert
OK, beim Versuch, manpages anzuzeigen bekomme ich folgende Fehlermeldung:
sh: nroff: Permission denied
und dann eine leere Seite.
sehr merkwürdig....
EDIT: es hängt irgendwie mit der Installation von bash zusammen. Das Auskommentieren folgender Zeile in /opt/etc/profile hat erstmal geholfen:
#LD_LIBRARY_PATH=/opt/lib:${LD_LIBRARY_PATH}
Gruß
Robert
LD_LIBRARY_PATH=/opt/lib:${LD_LIBRARY_PATH}
Dieser Schritt sieht nicht sehr behilflich aus, weil in /etc/ld.so.conf gibt's schon
/lib
/usr/lib
/opt/lib
Welche firmware Version hast du? Hast du ein Upgrade vom Firmware von Version frueher als 1.9.2.7-8 gemacht?
Solche Fehlermeldungen koennen wegen Inkompatibilitaet zwischen Packete aus unslung und optware repositories passieren.
Dieser Schritt sieht nicht sehr behilflich aus, weil in /etc/ld.so.conf gibt's schon
/lib
/usr/lib
/opt/libdie /opt/etc/ld.so.conf (fallst du sie meinst) ist bei mir leer.
Welche firmware Version hast du? Hast du ein Upgrade vom Firmware von Version frueher als 1.9.2.7-8 gemacht? 1.9.2.7-10, steht unten in der Signatur. Bei meinem aktuellen Router habe ich von Anfang an diese Version drauf gespielt, also kein Update. Bei meinem früheren WL-500gP habe ich sicherlich irgendawnn mal von -7f auf -7g, auf -8, dann auf -9, dann auf -10 upgedated, keinerlei Probleme.
Solche Fehlermeldungen koennen wegen Inkompatibilitaet zwischen Packete aus unslung und optware repositories passieren. Wie gesagt, zum ersten Mal habe ich es beobachtet, nachdem ich bash mit ipkg installiert habe.
EDIT: habe bash komplett deinstalliert, /opt/etc/profile neu erstellt und nach meinen Vorstellungen eingerichtet. Das Problem scheint damit erledigt zu sein.
Gruß
Robert