group ownership

Dave Dykstra dwd at bell-labs.com
Fri Oct 19 05:46:30 EST 2001


On Wed, Oct 17, 2001 at 03:15:00PM -0500, Ronald D. Walkup wrote:
> willem wrote:
> 
> > "Ronald D. Walkup" wrote:
> >
> > > I am attempting to rsync data from a rsync server and set the
> > > permissions to a different gid on the client:
> > >
> > > my servers name is "rserver01"
> > >
> > > my clients name is "rclient01"
> > >
> > > here is the rysync.conf  contained on rserver01:
> > >
> > > # log file
> > > log file = /var/adm/rsync_log
> > >
> > > # global options for all modules
> > > dont compress = *.gz *.tgz *.zip *.z *.rpm *.deb *.iso *.bz2 *.tbz
> > > uid = nobody
> > > gid = nobody
> > > transfer logging=true
> > > list=true
> > >
> > > [test]
> > >         path=/var/tmp/rsync_test
> > >         comment = rsync_test
> > >         read only = true
> > >         hosts allow=rclient
> > >         gid = cdburners
> > >
> > > on the server, ls -al  of the source directory indicates that group
> > > ownership is "visitor":
> > >
> > > rserver01>ls -al
> > > total 12
> > > drwxr-xr-x   3 rwalkup  visitor      512 Oct 17 13:43 .
> > > drwxrwxrwt   6 sys      sys         1536 Oct 17 13:31 ..
> > > -rw-r--r--   1 rwalkup  visitor       79 Mar 13  2001 hosts
> > > drwxr-xr-x   3 rwalkup  visitor      512 Mar 13  2001 inet
> > > -rw-r--r--   1 rwalkup  visitor      330 Mar 21  2001 vfstab
> > >
> > > I then execute the following syntax from the client:
> > >
> > > rclien01> rsync -avz rserver01::test   /var/tmp/rsync_test
> > >
> > > after the copy has completed,   I then execute:
> > >
> > > rclient01> ls -al /var/tmp/rsync_test
> > >
> > > total 12
> > > drwxr-xr-x   3 rwalkup  visitor      512 Oct 17 13:49 .
> > > drwxrwxrwt   6 sys      sys         1536 Oct 17 13:49 ..
> > > -rw-r--r--   1 rwalkup  visitor       79 Mar 13  2001 hosts
> > > drwxr-xr-x   3 rwalkup  visitor      512 Mar 13  2001 inet
> > > -rw-r--r--   1 rwalkup  visitor      330 Mar 21  2001 vfstab
> > >
> > > Is it not possible that the group ownerhip be changed to cdburners as
> > > the rsyncd.conf file indicates?
> > >
> > > cdburners exist on both client and server.
> > >
> > > any ideas would be greatly appreciated.
> > >
> > > Thanks,
> > >
> > > Ron
> >
> > you need to execute the comman as root on the client
> 
> I tried that earlier to no avail:
> 
> rclient01>id
> 
> uid=0(root) gid=1(other)
> 
> rclient01>rsync -avpz yam02::test /var/tmp/rsync_test
> 
> rclient01>ls -al /var/tmp/rsync_test
> 
> total 12
> drwxr-xr-x   3 rwalkup  visitor      512 Oct 17 15:01 .
> drwxrwxrwt   6 sys      sys         1536 Oct 17 15:00 ..
> -rw-r--r--   1 rwalkup  visitor       79 Mar 13  2001 hosts
> drwxr-xr-x   3 rwalkup  visitor      512 Mar 13  2001 inet
> -rw-r--r--   1 rwalkup  visitor      330 Mar 21  2001 vfstab



No, sorry, the gid of files *read* is not set by setting the gid in
rsyncd.conf.  All that does is effectively change the group id of the
running process to that id on the server (assuming the server process has
permission to do so), it doesn't change the group id of the files.  The
gid in rsyncd.conf really only has an effect on creating files.

- Dave Dykstra




More information about the rsync mailing list