X-Recipient: archive-cygwin@delorie.com
X-SWARE-Spam-Status: No, hits=-3.1 required=5.0 	tests=AWL,BAYES_00,J_CHICKENPOX_32,RCVD_IN_DNSWL_LOW,SPF_HELO_PASS,SPF_PASS
X-Spam-Check-By: sourceware.org
To: cygwin@cygwin.com
From: "H.S." <hs.samix@gmail.com>
Subject:  Re: backup XP on Linux using rsync over ssh: permissions problems
Date:  Wed, 10 Jun 2009 17:25:31 -0400
Lines: 69
Message-ID: <h0p8cb$ad9$1@ger.gmane.org>
References:  <h0n9nh$8c2$1@ger.gmane.org> <4A2F3427.8010506@sbcglobal.net> <h0opne$o7e$1@ger.gmane.org> <5BB805FE54FD46C295E6468584F3809E@phoenix> <h0ouhp$920$1@ger.gmane.org> <A9F31A1F39F3420D86643B0C16713B31@phoenix>
Mime-Version:  1.0
Content-Type:  text/plain; charset=ISO-8859-1
Content-Transfer-Encoding:  7bit
User-Agent: Mozilla-Thunderbird 2.0.0.19 (X11/20090103)
In-Reply-To: <A9F31A1F39F3420D86643B0C16713B31@phoenix>
X-IsSubscribed: yes
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
Precedence: bulk
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie.com@cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com

Jason Pyeron wrote:
>  
> 
>> -----Original Message-----
>> From: H.S.
>> Sent: Wednesday, June 10, 2009 14:38
>>
>> Jason Pyeron wrote:
>>>> -----Original Message-----
>>>> From: H.S.
>>>> Sent: Wednesday, June 10, 2009 13:15
>>>>
>>>> Greg Chicares wrote:
>>>>> On 2009-06-10 03:36Z, H.S. wrote:
>>>>>> rsync --delete --modify-window=10  --force -Rvaue ssh
>>>>>>     --exclude-from=$EXCLUDESFILE --progress \
>>>>>>     xp-box:"/cygdrive/c/Documents\ and\ Settings/user1 
>>>>>> /cygdrive/c/Documents\ and\ Settings/user2"
>>> /mnt/backups/xp-daily-00;
>>>>> Does '-p' ('--perms') help with the permissions problems?
>>>>>
>>>> This flag "preserve permissions". The permissions are alright 
>>>> currently.
>>>> The problem is that a user on XP box ssh'es to the Debian box (and 
>>>> becomes a Debian user) and then fails to browse the 
>> backups of the XP 
>>>> box which are saved on the Debian box because the XP 
>> backups' uid and 
>>>> gids do not match with Debian users'.
>>>>
>>> What you have is not a problem, but by design.
>>>
>>> Unless you make the user/group ids match on both machines, you will 
>>> either need to strip the perms or access the files by root 
>> or equivalent.
>>
>> Yes, I can already access them as root (obviously not a 
>> versatile approach).
>>
>> What I was hoping for is for some hints on how to retain the 
>> permissions and browse the backups from the XP box with the 
>> same permissions as on the XP box.
>>
>> Currently the backups as accessed by using Debian box 
>> accounts (which are different than the accounts on the XP 
>> box). Any way I can access them from XP but by using XP uid/guid's?
> 
> We do this using samba / nis and creating a single sign on.
> 
> This is not for the faint of heart.


This is on a small private network. I can set up samba but single sign
on is not applicable here for various reasons.

I suppose I have to look into changing the uid and gid on the backups
somehow.

Thanks.




-- 

Please reply to this list only. I read this list on its corresponding
newsgroup on gmane.org. Replies sent to my email address are just
filtered to a folder in my mailbox and get periodically deleted without
ever having been read.


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

