chmod/chown on receiver

Blickwinkel info at blickwinkel.de
Tue Feb 14 09:17:51 GMT 2006


Am Fri, 10 Feb 2006 15:32:17 -0800 hat Wayne Davison <wayned at samba.org>  
geschrieben:

> On Fri, Feb 10, 2006 at 10:44:58PM +0000, rsync at hot.ping.de wrote:
>> These files have to be rw by wwwrun on the receiver.
>
> As long as your remote-shell logs in as user wwwrun, the files will be
> owned by that user.  If you're logging in as root, just run rsync as
> that user (e.g. --rsync-path="su - wwwrun rsync").  If you're using a
> daemon, set the "uid = wwwrun" option for that module.
>
> As for forcing permissions, see the --chmod=u+rw option and the
> "incoming chmod = u+rw" daemon option, both available in 2.6.7
> (which is now in pre-release testing).
>
> ..wayne..
>


Thanks, I was trying your hint with the su command, but somehow "--server"  
seems to get
passed to su and fails:

su: unrecognized option `--server'
Try `su --help' for more information.
rsync: connection unexpectedly closed (0 bytes received so far) [sender]
rsync error: error in rsync protocol data stream (code 12) at io.c(434)

After:
rsync -e "ssh -i /root/.ssh/xxx-key" -r -t -v -z --remove-sent-files  
--progress -i --stats
--rync-path="su - wwwrun rsync" /srv/samba/blickwinkel/Internet/Warp/IPTC/  
1.2.3.4:
/srv/www/iptc.majorphoto.de/sysdirs/ToDo

Any ideas?

Thanks in advance,
thoraxx


More information about the rsync mailing list