rsync+stunnel

This is a discussion on rsync+stunnel within the Rsync forums, part of the Networking and Network Related category; Hello, 1. I am successfully executing rsync with stunnel in a script as root: [...] stunnel -c -d localhost:45873 -r ...


Go Back   Usenet Forums > Networking and Network Related > Rsync

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 09-07-2005
david@nospam.invalid
 
Posts: n/a
Default rsync+stunnel

Hello,

1. I am successfully executing rsync with stunnel in a script as root:

[...]
stunnel -c -d localhost:45873 -r rsync.ibackup.com:5000

nice -n10 /usr/bin/rsync -r -t --delete-after --password-file=[password
file] /home/offsite/files/ [my remote account]@localhost::ibackup
--port=45873

killall stunnel
[...]


2. I would like to execute the rsync command within this script as user
"offsite" for extra security:

[...]
stunnel -c -d localhost:45873 -r rsync.ibackup.com:5000

su -s /bin/bash -c "nice -n10 /usr/bin/rsync -r -t --delete-after
--password-file=[password file] /home/offsite/files/ [my remote
account]@localhost::ibackup --port=45873" offsite

killall stunnel
[...]

but I get the following error:

rsync: pop_dir "/home/offsite/files" failed: Permission denied (13)
rsync error: errors selecting input/output files, dirs (code 3) at
flist.c(1226)

all folders and files including the password file under /home/offsite
are owned by user "offsite". What am I missing?

Thanks,

David
Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 01:20 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0