feature request: "remote user is root, make remote owner is foo"

Matt McCutchen matt at mattmccutchen.net
Sat Aug 14 23:36:49 MDT 2010


On Wed, 2010-08-11 at 10:18 -0700, travis+ml-rsync at subspacefield.org
wrote:
> I often push files from my user account over SSH to my web server, and
> want them owned by www-user, which may not have a login shell, should
> never accept remote logins, and who may not have a ~/.ssh directory
> (and if it did, it would be under the wwwroot, ack!).
> 
> Currently I push as root and then do a chmod, but isn't there a better
> way?  While I'm doing this, the files are temporarily unavailable, since
> they aren't readable by www-user as they exist on the local system.

See the --usermap option, which is in the current development rsync and
available in the "usermap.diff" maintained patch for rsync 3.0.*.

-- 
Matt



More information about the rsync mailing list