[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

cron, sshfs and sudo



Hallo,

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
"

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?

mvg,
Wim



Reply to: