Re: cron, sshfs and sudo

2016-07-14 Thread Daniel Bareiro
On 17/06/16 04:01, Wim Bertels wrote: > Hallo, Hello, Win. > use case: use cron to mount a sshfs share (with automatic key auth) > > on 1 installation this is working fine: > script: > " > #!/bin/bash > > sudo -u user1 sshfs user1@123.234.1.2:/var/user1/shared /mnt/shared > > exit > " > >

Re: cron, sshfs and sudo

2016-07-14 Thread Wim Bertels
> > > > on the other it keeps failing because the passphrase needs to be entered > > to unlock the key, it doesn't fail however without sudo and a custom > > user1 crontab entry; but as cron is run by root, this should be able to > > do easier > > > > suggestions? > > "Install 1" may be using some

Re: cron, sshfs and sudo

2016-06-17 Thread Dan Purgert
Wim Bertels wrote: > use case: use cron to mount a sshfs share (with automatic key auth) > > on 1 installation this is working fine: > [snipped the script] > > on the other it keeps failing because the passphrase needs to be entered > to unlock the key, it doesn't fail however without sudo and a cu