4

Encrypt folder so it's accessible to cron

view full story
linux-howto

http://www.linuxquestions.org – I have a script that crond runs each night. The script pulls some sensitive files from an SFTP server and stores them in a folder on the local machine. I need to encrypt those files on the filesystem. Ideally, I could encrypt the folder they're stored in to require a password whenever the files are accessed. The problem is that then crond wouldn't be able to access the files. Using something like ecryptfs would allow the cron script to mount the encrypted storage by supplying the password, but now the keys to the kingdom are just sitting in a cron shell script. Is there a good way to app (HowTos)