[rancid] problem with rancid crontab
Alexander Griesser
AGriesser at anexia-it.com
Tue Oct 3 13:16:19 UTC 2017
Hi,
You can set the CWD to ~rancid first and then execute "rancid-run", but this is (at least to my experience) not necessary if the home directory for your rancid user iss et properly in /etc/passwd.
What does `grep rancid /etc/passwd` return on your system? Is /var/rancid liste das the home directory for this account?
Best,
Alexander Griesser
Head of Systems Operations
ANEXIA Internetdienstleistungs GmbH
E-Mail: AGriesser at anexia-it.com<mailto:AGriesser at anexia-it.com>
Web: http://www.anexia-it.com<http://www.anexia-it.com/>
Anschrift Hauptsitz Klagenfurt: Feldkirchnerstraße 140, 9020 Klagenfurt
Geschäftsführer: Alexander Windbichler
Firmenbuch: FN 289918a | Gerichtsstand: Klagenfurt | UID-Nummer: AT U63216601
Von: Rancid-discuss [mailto:rancid-discuss-bounces at shrubbery.net] Im Auftrag von Vacheslav
Gesendet: Dienstag, 3. Oktober 2017 14:23
An: rancid-discuss at shrubbery.net
Betreff: [rancid] problem with rancid crontab
Peace,
I configured crontab as root as such:
0 */6 * * * rancid /usr/bin/rancid-run
# Clean out config differ logs5
0 23 * * * rancid /usr/bin/find /var/rancid/logs -type f -mtime +2 -exec rm {} \
But an error is logged:
clogin error: Error: password file (//.cloginrc) does not exist
I do not understand what the path // is. The .cloginrc file is in /var/rancid
Or is it absolutely necessary to run cron as user rancid?
p.s I'm using rancid 3.7
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.shrubbery.net/pipermail/rancid-discuss/attachments/20171003/7db8f99e/attachment.html>
More information about the Rancid-discuss
mailing list