0

On my MX-18 linux (Debian 9 Stretch based) system, whenever a script runs via cron, my Private ecryptfs volume unmounts.

Confirmed, no issue running the same BASH scripts from a terminal. Tested with two different scripts. The crontab is set up with crontab -e from my standard user account.

Can't find anything on the web about this.

Cheers

  • 1
    I know Cron opens and closes a PAM session to perform tasks. This might trigger any .profile or .logout scripts you have. Might this be related? – Philip Couling Mar 16 at 23:35
  • You seem to be focusing on bash scripts. What happens if you run a simple command (like date > /tmp/x or cp y z) via cron? – G-Man Mar 17 at 2:07
  • I added * * * * * date > /tmp/datefile to crontab. This also causes my ecryptfs folder to unmount. So, it does seem to be cron, not the bash script. – AlexJ Mar 17 at 7:41
  • Regarding PAM session, I don't know about that. I'll dig into it a bit. Thanks. – AlexJ Mar 17 at 7:42
  • Running things in root crontab whilst logged in as a user (owner of the ecryptfs volume) doesn't cause the problem. This is a workaround for now. The replies led me to try this... thanks very much! – AlexJ Mar 17 at 8:08

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.