Can't run john cronjob because of missing dir in /var/lib and /var/run, and they're not created

Bug #1094280 reported by halfgaar on 2012-12-28
20
This bug affects 3 people
Affects Status Importance Assigned to Milestone
One Hundred Papercuts
High
Unassigned
john (Ubuntu)
High
Unassigned

Bug Description

When you start john (with the cron service '/usr/share/john/cronjob start'), it complains about /var/run/john and /var/lib/john not existing:

mktemp: failed to create file via template `/var/run/john/cronpasswd.XXXXXX': No such file or directory

I have to make the dirs myself. And for /var/run this is especially inconvenient, because it is deleted upon reboot.

The file /etc/cron.d/john says you can simply uncomment the commands to make it work, but that is not the case, because of those missing dirs.

Hans Joachim Desserud (hjd) wrote :

Thanks for taking your time to report this issue and help making Ubuntu better.

I get the same error messages when attempting to run `/usr/share/john/cronjob start` from john 1.8.0-2 on Ubuntu Wily.

Changed in john (Ubuntu):
status: New → Confirmed
summary: - Can't run john because of missing dir in /var/lib and /var/run, and
- they're not created
+ Can't run john cronjob because of missing dir in /var/lib and /var/run,
+ and they're not created
tags: added: vivid wily
Changed in john (Ubuntu):
importance: Undecided → High
Changed in hundredpapercuts:
importance: Undecided → High
status: New → Confirmed
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Duplicates of this bug

Other bug subscribers