Script sun as other user than root doesn't via CRON
I have a NAS1 that makes a backup to another NAS2 using a scheduled rscync script which starts around 04:05. :)
NAS1 has a user account "backup" which is able to ssh to NAS2 using no password. (rsync uses ssh under water so this is convenient).
The script is started via a cron job.
However, when the script is run via cron, I get this error message:
rsync: Failed to exec ssh: No such file or directory (2)
rsync error: error in IPC code (code 14) at pipe.c(84) [sender=3.0.5]
rsync: writefd_unbuffered failed to write 4 bytes [sender]: Broken pipe (32)
rsync error: error in IPC code (code 14) at io.c(1509) [sender=3.0.5]
When I start the script as root, it all works fine.:D
Who understands what needs to be solved? Thanks very much!
The cron job entry is this:
My thought was that there lies the problem …I was thinking of PATH settings for user backup, but those PATH settings seem ok:
just add a PATH setting to the script run by crontab and all is good.
|All times are GMT +2. The time now is 15:36.|
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.