Bug#660822: john cron job doesn't run
In my version of /usr/share/john/cronjob, the logic of creating the $PIDDIR is not working. Change it from: [ ! -d $PIDDIR ] || mkdir -p $PIDDIR to: [ ! -d $PIDDIR ] mkdir -p $PIDDIR Hope this helps, -- Phil Package: john Version: 1.7.8-1 -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Bug#660822: john cron job doesn't run
Raf Czlonka rafal.czlo...@gmail.com wrote: I just tried running john from cron, this is what I get when it starts: /usr/share/john/cronjob: line 28: cd: /var/lib/john: No such file or directory See also bug #495398 which says that /root/.john is used instead of /var/lib/john. Since the other bug has been marked as wontfix (even though it seems strange for me for a package to write to ~root), it appears that the proper fix for this issue is to change RUNDIR and RESTORE in /usr/share/john/crontab from /var/lib/john to /root/.john. The important thing is that the cronjob script and the john binary are consistent. -- Bill Wohler woh...@newt.com aka bill.woh...@nasa.gov http://www.newt.com/wohler/ GnuPG ID:610BD9AD -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Bug#660822: john cron job doesn't run
Raf Czlonka rafal.czlo...@gmail.com wrote: I just tried running john from cron, this is what I get when it starts: /usr/share/john/cronjob: line 28: cd: /var/lib/john: No such file or directory I see this problem in 1.7.8 as well. Creating /var/lib/john and setting the permissions to 700 fixes the problem, but this should be done during installation. -- Bill Wohler woh...@newt.com aka bill.woh...@nasa.gov http://www.newt.com/wohler/ GnuPG ID:610BD9AD -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Bug#660822: john cron job doesn't run
Package: john Followup-For: Bug #660822 Hi, even after the fix in john 1.7.7-1 the folders /var/run/john /var/lib/john are not created and thats the reason why this cronjob won't run. Just create the folders manually until its fixed in john: mkdir -p /var/run/john mkdir -p /var/lib/john then the cronjob is running without a problem. -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Bug#660822: john cron job doesn't run
Package: john Version: 1.7.8-1 Severity: important Hi, I just tried running john from cron, this is what I get when it starts: /usr/share/john/cronjob: line 28: cd: /var/lib/john: No such file or directory mktemp: failed to create file via template `/var/run/john/cronpasswd.XX': No such file or directory We can see two errors there, both caused by non-existant directories. Kind regards, Raf -- System Information: Debian Release: wheezy/sid APT prefers unstable APT policy: (500, 'unstable'), (500, 'testing'), (500, 'stable'), (1, 'experimental') Architecture: powerpc (ppc) Kernel: Linux 3.2.0-1-powerpc Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash Versions of packages john depends on: ii john-data 1.7.8-1 ii libc6 2.13-26 john recommends no packages. Versions of packages john suggests: ii wamerican [wordlist]7.1-1 ii wbritish [wordlist] 7.1-1 ii wbritish-insane [wordlist] 7.1-1 ii wpolish [wordlist] 20120212-1 -- Configuration Files: /etc/cron.d/john changed: 00 1 * * * root[ -x /usr/share/john/cronjob ] nice /usr/share/john/cronjob start 00 7 * * * root[ -x /usr/share/john/cronjob ] /usr/share/john/cronjob stop -- no debconf information -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org