<div dir="ltr"><div dir="ltr" class="gmail_msg">I've just tried now and I manage to list the files even from the cron job. I've tested to take a backup with backintime and that also works fine. Also another problem that I've described here <a href="https://sourceforge.net/p/pam-mount/support-requests/61/">https://sourceforge.net/p/pam-mount/support-requests/61/</a> is gone. I'm wondering what fixed the issue.</div><div><br></div><div>I'm sorry to made you lose time. I've spent many months trying to figure out a solution to this annoying problem and now it's just gone by itself.</div><div><br></div>As a reference an extended discussion is present here: <a href="https://github.com/bit-team/backintime/issues/590">https://github.com/bit-team/backintime/issues/590</a><br>where I've also posted the results of ls /media/dataHD at the time, and where the result from the cronjob was:<div><br></div><div><pre style="box-sizing:border-box;font-family:consolas,"liberation mono",menlo,courier,monospace;font-size:11.9px;margin-top:0px;font-stretch:normal;line-height:1.45;word-wrap:normal;padding:16px;overflow:auto;background-color:rgb(247,247,247);border-radius:3px;color:rgb(51,51,51);margin-bottom:0px"><code style="box-sizing:border-box;font-family:consolas,"liberation mono",menlo,courier,monospace;font-size:11.9px;padding:0px;margin:0px;background-image:initial;background-position:initial;background-size:initial;background-repeat:initial;background-origin:initial;background-clip:initial;background-color:transparent;border-radius:3px;word-break:normal;border:0px;display:inline;overflow:visible;line-height:inherit;word-wrap:normal">/media/dataHD:
total 0</code></pre><div><br></div>Thanks</div><div><br class="gmail_msg"><div class="gmail_quote gmail_msg"><div dir="ltr" class="gmail_msg">On Sun, Oct 9, 2016 at 4:29 PM Matus UHLAR - fantomas <<a href="mailto:uhlar@fantomas.sk" class="gmail_msg" target="_blank">uhlar@fantomas.sk</a>> wrote:<br class="gmail_msg"></div><blockquote class="gmail_quote gmail_msg" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On 09.10.16 08:02, Simone Gaiarin wrote:<br class="gmail_msg"><br>>Short version: Cron jobs cannot access the content of the encrypted disk<br class="gmail_msg"><br>>even when I'm logged in. I can access the content of the disk from bash or<br class="gmail_msg"><br>>graphical file explorer.<br class="gmail_msg"><br>><br class="gmail_msg"><br>>Longer version:<br class="gmail_msg"><br>>I've first seen problem because I'm using backintime to perform automatic<br class="gmail_msg"><br>>backup of my disk. When I run the backup manually everything is fine, while<br class="gmail_msg"><br>>when the backup is performed automatically with cron the resulting backup<br class="gmail_msg"><br>>is always empty.<br class="gmail_msg"><br>><br class="gmail_msg"><br>>Adding the follwing command to crontab (using crontab -e), in order to list<br class="gmail_msg"><br>>the content of the drive (/media/dataHD), show me that the ls of the drive<br class="gmail_msg"><br>>doesn't produce any result.<br class="gmail_msg"><br>><br class="gmail_msg"><br>>*/1 * * * * ls -la /media /media/dataHD /media/dataHD/work > /tmp/filelist<br class="gmail_msg"><br><br class="gmail_msg"><br>could you show us the results when run from cron and manually?<br class="gmail_msg"><br><br class="gmail_msg"><br>--<br class="gmail_msg"><br>Matus UHLAR - fantomas, <a href="mailto:uhlar@fantomas.sk" class="gmail_msg" target="_blank">uhlar@fantomas.sk</a> ; <a href="http://www.fantomas.sk/" rel="noreferrer" class="gmail_msg" target="_blank">http://www.fantomas.sk/</a><br class="gmail_msg"><br>Warning: I wish NOT to receive e-mail advertising to this address.<br class="gmail_msg"><br>Varovanie: na tuto adresu chcem NEDOSTAVAT akukolvek reklamnu postu.<br class="gmail_msg"><br>Saving Private Ryan...<br class="gmail_msg"><br>Private Ryan exists. Overwrite? (Y/N)<br class="gmail_msg"><br><br class="gmail_msg"><br>_______________________________________________<br class="gmail_msg"><br>Pam-list mailing list<br class="gmail_msg"><br><a href="mailto:Pam-list@redhat.com" class="gmail_msg" target="_blank">Pam-list@redhat.com</a><br class="gmail_msg"><br><a href="https://www.redhat.com/mailman/listinfo/pam-list" rel="noreferrer" class="gmail_msg" target="_blank">https://www.redhat.com/mailman/listinfo/pam-list</a><br class="gmail_msg"><br></blockquote></div></div></div>