Using Debian Jessie, I'm having trouble running a one line file I placed in /etc/cron.d
The file contains the following line:
@reboot myuser /usr/bin/keepass2 /home/myuser/mydb.kdbx -pw:password
It is meant to open my keepass database, logged in and to be run as myuser rather than root.
I found this question here which seems to be exactly my problem. As per comments to this answer I changed permissions of the file in cron.d to the following:
-r-----r-- 1 root root 73 Jun 12 09:26 keepass
However it still doesn't seem to work. run-parts --test /etc/cron.d
returns an empty line. And it doesn't run at startup either.