Permission changes with rsync

2007-11-26 Thread Hans-J. Ullrich
Dear security team,
I just discovered, that rsync to an encrypted filesystem seem to change owners 
and groups on some files. 

I used rsync -av from source to target. (O.k., I missed to 
add --numeric-ids, which resulted in getting some files with numeric owners), 
But other files on the target got wrong owners or groups ! So, this should 
not happen, IMO !

I still have the source available on another host. Is there a way, to correct 
all owners ansd groups at the target without changing the files ?

I tried rsync -rog --existing --ignore-existing with no sucess.

Tahbk you very much for your help !

Regards

Hans



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Re: Permission changes with rsync

2007-11-26 Thread Bernd Eckenfels
In article [EMAIL PROTECTED] you wrote:
 I used rsync -av from source to target. (O.k., I missed to 
 add --numeric-ids, which resulted in getting some files with numeric owners), 
 But other files on the target got wrong owners or groups ! So, this should 
 not happen, IMO !

1. are you root?
2. what is the numeric uid on source and target? (use ls -n)
3. on some? are those all belong to one user or dot files or existing/non 
existing=
4. can you manually change the ownership? (what is the filesystem type, does it 
allow userids?)

Gruss
Bernd


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]