admin is able to chown and chgrp within a vs because the skel incorporates
specially patched versions of file-utils. rsync has not been patched so has
no concept of the admin user being able to act as super-user. If you want to
get around this problem within the vs I suspect you would need to patch
rsync.

Tim

> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]]On Behalf Of Ben Kennish
> Sent: 31 October 2001 15:11
> To: FreeVSD Support
> Subject: owner and group preservation with rsync in a VS
>
>
> Hello all.
>
> I am trying to use the 'rsync' program to synchronise files that we have
> on a VS on the Internet with a VS on our Intranet in the office (thanks
> to Tim!)
>
> The thing is, I am having problems when trying to preserve the owner and
> group of each file by using the -o and -g options.  The 'rsync' man page
> specifies that in order to use the "-o" option, we must be "the
> super-user".  It also states that using the "-g" option when you are not
> the super-user will only work if you belong to a group that you are
> trying to set.
>
> So it seems that the admin user within a VS is not counted as a
> super-user in this respect as the options only seem to work properly if
> i go into the vs with "bevs -r".  Say I have a file on the remote VS
> that is owned by "bill" and has the group "ben".  As "admin", I create
> the users "bill" and "ben" on my local VS and attempt to rsync the file
> down to my local VS with the -o and -g options.  If I am the 'root' user
> when using "rsync", the file ends up being user=bill group=ben on the
> local VS (exactly what I want), but if I am the 'admin' user, the file
> ends up being user=admin and group=admin.
>
> But the thing is, the "admin" user is quite capable of manually "chown"
> and "chgrp"ing the file to bill and ben respectively once it has been
> downloaded so how come "rsync" refuses to do this unless I am a
> 'super-user'?  Is this "rsync"s fault or FreeVSDs fault?
>
> As we have 'root' access to the VS in the office, its not too much of a
> problem when we are updating FROM the one on the Internet TO the one in
> the office.  However, if we are updating FROM the one in the office TO
> the server on the Internet (on which we only have 'admin' access) then
> user and group changes wont be preserved.  Any ideas?
>
> Thanks in advance,
>
>
> Ben Kennish
> [EMAIL PROTECTED]
> www.fubra.com
>
> ------------------------- The freeVSD Support List
> --------------------------
> Subscribe:   mailto:[EMAIL PROTECTED]?body=subscribe%20freevsd-support
> Unsubscribe:
> mailto:[EMAIL PROTECTED]?body=unsubscribe%20freevsd-support
> Archives:    http://freevsd.org/support/mail-archives/freevsd-support
> ------------------------------------------------------------------
> -----------

------------------------- The freeVSD Support List --------------------------
Subscribe:   mailto:[EMAIL PROTECTED]?body=subscribe%20freevsd-support
Unsubscribe: mailto:[EMAIL PROTECTED]?body=unsubscribe%20freevsd-support
Archives:    http://freevsd.org/support/mail-archives/freevsd-support
-----------------------------------------------------------------------------

Reply via email to