rsyncing feeling

Michael Galea michaelgalea-4VtgCsEi+FIybS5Ee8rs3A at public.gmane.org
Thu Jul 22 12:55:00 UTC 2004


David J Patrick wrote:
> rsync !
> Just what I need to keep my USB-key files in sync with the laptop and 
> the desktop.
> But what's this ? A fly in my ointment ! A big hairy one !
> It's name is "permissions"; I have no idea how to reconcile files for 
> users of multiple systems.
> It seems not to be enough that "dave" is the log-in name on all 
> machines, or that he is a member of the "office" group. I know this must 
> be absurdly simple, and long dealt with, un unix days of old. but, once 
> again, I could use a clue.
> thank you,
> djp
> -- 
> The Toronto Linux Users Group.      Meetings: http://tlug.ss.org
> TLUG requests: Linux topics, No HTML, wrap text below 80 columns
> How to UNSUBSCRIBE: http://tlug.ss.org/subscribe.shtml

If you don't have too many systems/users and you have control over them, 
why not just normalize the UIDs/GIDs now?

For a user (GID 1000, UID 1000) modify the /etc/passwd file (e.g. 
1000:1000 to 1001:1001)
Modify the /etc/group file (e.g. 1000 to 1001)
find / -xdev -uid 1000 -print -exec chown 1001 {} \;
find / -xdev -gid 1000 -print -exec chgrp 1001 {} \;

When I used to manage multiple systems I would either copy from 
/etc/passwd or manually specify UID/GID at account creation time.

-- 
Michael Galea
64 Jardin Drive, Unit 3G
Concord, Ontario, Canada, L4K 3P3
Telephone: (905) 760-7799 Ext. 245
Fax (905) 760-9909
email: michaelgalea-4VtgCsEi+FIybS5Ee8rs3A at public.gmane.org
web site: www.ruggedcom.com
--
The Toronto Linux Users Group.      Meetings: http://tlug.ss.org
TLUG requests: Linux topics, No HTML, wrap text below 80 columns
How to UNSUBSCRIBE: http://tlug.ss.org/subscribe.shtml





More information about the Legacy mailing list