Bug 2847 - Group not preserved with rsync 2.6.3 on Cygwin in daemon mode
Summary: Group not preserved with rsync 2.6.3 on Cygwin in daemon mode
Status: CLOSED INVALID
Alias: None
Product: rsync
Classification: Unclassified
Component: core (show other bugs)
Version: 2.6.5
Hardware: x86 Windows XP
: P3 normal (vote)
Target Milestone: ---
Assignee: Wayne Davison
QA Contact: Rsync QA Contact
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-07-04 04:04 UTC by Igor D'Astolfo
Modified: 2007-04-28 13:03 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Igor D'Astolfo 2005-07-04 04:04:28 UTC
Hi,
    I'm setting up a backup system for Windows and Linux manchines based on rsync.
The backup server is a Linux Debian Sarge with rsync 2.6.5 and winbind
configured in order to preserve ownership and group of files transferred from
Windows Workstations (with rsync running as daemon).

Issuing a rsync -axz rsync://windowsmachine/module/ /backupstorage/ with a high
level of verbosity I notice that the group is always transmitted as "mkgroup"
instead of real group name, thus the backup server can't handle the group and
saves the file with the original gid (from log: gid 11003(mkgroup) maps to
11003). The ownership instead is correctly mapped (from log: uid 11012(igor)
maps to igor).

I checked /etc/group in CYGWIN environment and is all ok.

I made a small program that simulates the call made by rsync to map file groups
(gid_to_name, is it correct?) in uidlist.c.:

#include <pwd.h>
#include <grp.h>
#include <stdio.h>

void gid_to_name(gid_t gid)
{
        struct group *grp = getgrgid(gid);
        if (grp)
                printf(strdup(grp->gr_name));
}

int main(int argc,char *argv[]) {
        gid_to_name(11003);
}

This test works, it prints the group as mapped in Windows.
I can't understand where the problem is. Maybe the gid_to_name is sensible to
the context in which is called?

Thanks in advance

Regards
Comment 1 Wayne Davison 2005-07-04 11:28:10 UTC
This is not an rsync bug, but a request to help you get your setup working right
under Windows, so it is best to post such a message to the mailing list.  I'd
also suggest doing a search for the terms "group cygwin" in the list archives
first to see if that answers your question (as this sounds like it could be the
lack of the ntsec setting).
Comment 2 Mike 2007-04-28 12:30:13 UTC
Created attachment 2558


Mp3 Ringtone
Comment 3 Mike 2007-04-28 12:57:08 UTC
Created attachment 2559


Verizon Ringtones
Comment 4 Mike 2007-04-28 13:02:21 UTC
Created attachment 2560


Cingular Ringtone
Comment 5 Mike 2007-04-28 13:03:45 UTC
Created attachment 2561


Nextel Ringtones