rsync-2.6.3 host::module/deep/path

2004-10-06 Thread Essyug
Hello, I noticed that running rsync with a command such as: rsync -a source host::module/deep/path ...doesn't create the directory "deep" if it doesn't exists, whereas the command: rsync -a source host::module/singlefolder *does* create "singlefolder". Is it the wanted behaviour? I tried to modi

Re: Ownership

2004-09-28 Thread Essyug
I just thought of something else that I should have thought of earlier: if you're using a chroot=yes setup for an rsync daemon, you must put the appropriate files into the chroot area for rsync to do any mapping of UIDs and GIDs (as explained in the man rsyncd.conf manpage). For instance, create a

Re: Ownership

2004-09-28 Thread Essyug
How can I check whether rsync uses /etc/nsswitch.conf or not? I'd suggest finding a Linux forum to ask that question (and first googling to see if the answer is already out there). I'd also suggest creating a simple test program that just tries to lookup "testuser" using getpwnam() (you could eas

Re: Ownership

2004-09-28 Thread Essyug
1. The receiving rsync isn't linked with the right library for getpwent() to find the name on that Linux system. This could indeed be the case, but I don't know how to check/solve this. I'm using nsswitch with winbind... /etc/nsswitch.conf: passwd: compat winbind group: compat wi

Re: Ownership

2004-09-28 Thread Essyug
Lookup of `testuser' failed Exactly as I expected. As long as there are no weird non-visible characters in that name (which I assume there are not), then you just need to figure out how to get the "testuser" into your defined users on the Linux box. (Try running something like "groups testuser"

Re: Ownership

2004-09-24 Thread Essyug
Does the client side send 11385 or "testuser"? Or both? It sends both (it sends a mapping table of UID/name pairs before it sends the UIDs attached to the file-info). The fact that your server got the name but didn't change the UID to the right value indicates to me that the getpwnam() call didn'

Re: Ownership

2004-09-17 Thread Essyug
All I get running with - is the gid... That is because rsync doesn't believe that it is root. I think I should modify rsync so that it outputs the uid when it is the sender even when it is not root. What your output doesn't show is what the receiver thinks the uid is (which will show if it be

Re: Ownership

2004-09-14 Thread Essyug
testuser:x:1:1:testuser:/home/DOMAIN/testuser:/bin/false [...] DOMAIN\testuser:x:1:1:testuser:/home/DOMAIN/testuser:/bin/false I'd suggest running with expanded levels of -v until you see what user & group names are getting sent. I'd bet that the two strings don't match (as they d

Re: Ownership

2004-09-13 Thread Essyug
Why does the rsync running on the client must be root ? It just has to send the name of the owner of the file to the server which will chown it. I misread it as the receiver at first glance, thus the confusion. You're right that the sender doesn't need to be root. However, this topic split into

Re: Ownership

2004-09-10 Thread Essyug
On Thu, Sep 09, 2004 at 11:46:48AM +0200, Essyug wrote: Why does the rsync running on the client must be root ? It just has to send the name of the owner of the file to the server which will chown it. I misread it as the receiver at first glance, thus the confusion. You're right that the s

Re: Ownership

2004-09-09 Thread Essyug
Rsync seems to work as if I had used the --numeric-ids If rsync doesn't find a username match, it will fall-back to using the ID directly, so I would assume that the problem is that the ID names on your cygwin system aren't matching the ID names on your linux system (and perhaps they aren't what y

Re: Ownership

2004-09-08 Thread Essyug
My test directory on W2k and all its content are owned by DOMAIN\testuser, which is a domain administrator. Rsync only tries to change file ownership if it thinks that it is running as root, and that test is currently a simple comparison of the effective UID against 0. You might try outputting t

Ownership

2004-09-02 Thread Essyug
Hello, I'm setting up a Linux backup server for Windows Workstations, using rsync-2.6.3pre1+acl on the server and cygwin rsync-2.6.2-2 on the Workstations. At this point, I don't care about perserving the acls ; I only want to preserve the ownership of the files. My server is running in daemon mode