Hello everybody,
Here is my problem this time (i've found this community very helpful, but have yet to be able to give back to the community, due to my limited knowledge). As always, seems to be very simple, and it probably is something minor that i'm missing.
I wrote this one shell script that downloads file from another machine using scp. When i run it from shell - everything works just fine, but when i put it into crontab, it refuses to run. There are no environment variables involved - the script is literally three lines. The accounts are set up so that there is no password needed to log in (via keys in .ssh)
Code:
#/bin/bash
cd /storage
scp -r bckup_user@caesar:/home/bckup_user/svn_backup/ svn_backup
chown -R bckup_user:users svn_backup/*
When i look at the log, here is what i see
Code:
Feb 23 09:30:01 phoenix /usr/sbin/cron[21767]: (bckup_user) CMD (/usr/local/scripts/svn_backup.sh > /tmp/svn-log.txt)
Feb 23 09:30:02 phoenix /usr/sbin/cron[21766]: (bckup_user) UNSAFE (bckup_user)
I tried to google for "UNSAFE" part, but didn't come up with anything.
Any ideas are welcome.
Thanks in advance!
TS