Re: configure /etc/pam.d/crond to use pam_mount
Matus UHLAR - fantomas <[email protected]> Sun, 9 Oct 2016 16:15:13 +0200
| Newsgroups | gmane.linux.pam |
|---|---|
| Message-ID | <[email protected]> |
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, [email protected] ; 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)