configure /etc/pam.d/crond to use pam_mount

Matus UHLAR - fantomas uhlar at fantomas.sk
Sun Oct 9 14:15:13 UTC 2016


On 09.10.16 08:02, Simone Gaiarin wrote:
>Short version: Cron jobs cannot access the content of the encrypted disk
>even when I'm logged in. I can access the content of the disk from bash or
>graphical file explorer.
>
>Longer version:
>I've first seen problem because I'm using backintime to perform automatic
>backup of my disk. When I run the backup manually everything is fine, while
>when the backup is performed automatically with cron the resulting backup
>is always empty.
>
>Adding the follwing command to crontab (using crontab -e), in order to list
>the content of the drive (/media/dataHD), show me that the ls of the drive
>doesn't produce any result.
>
>*/1 * * * * ls -la /media /media/dataHD /media/dataHD/work > /tmp/filelist

could you show us the results when run from cron and manually?

-- 
Matus UHLAR - fantomas, uhlar at fantomas.sk ; http://www.fantomas.sk/
Warning: I wish NOT to receive e-mail advertising to this address.
Varovanie: na tuto adresu chcem NEDOSTAVAT akukolvek reklamnu postu.
Saving Private Ryan...
Private Ryan exists. Overwrite? (Y/N)




More information about the Pam-list mailing list