File Owner, Group and Permissions for Win2000
tim.conway at philips.com
tim.conway at philips.com
Tue Apr 2 02:21:39 EST 2002
First, set this environmental variable in Win2k
set CYGWIN=ntea
Do it as a system variable. It will let cygwin use the windows
permissions, rather than going by extension and #!.
Second, copy in all relevant users to your /etc/passwd in cygwin.
tconway at USB-FLATUSWIN ~
$ cat /etc/passwd
Everyone:*:0:0:,S-1-1-0::
SYSTEM:*:18:18:,S-1-5-18::
Administrators:*:544:544:,S-1-5-32-544::
Administrator::500:513:,S-1-5-21-1454471165-1383384898-854245398-500:/home/Administr
ator:/bin/sh
Guest::501:513:,S-1-5-21-1454471165-1383384898-854245398-501:/home/Guest:/bin/sh
hiram::1001:513:Tim
Conway,S-1-5-21-1454471165-1383384898-854245398-1001:/home/hiram
:/bin/sh
tconway::1000:513:Tim
Conway,S-1-5-21-1454471165-1383384898-854245398-1000:/home/tco
nway:/bin/sh
tconway at USB-FLATUSWIN ~
$ uname -a
CYGWIN_NT-5.0 USB-FLATUSWIN 1.1.7(0.31/3/2) 2000-12-25 12:39 i586 unknown
tconway at USB-FLATUSWIN ~
$
Third, create local users for each user. I don't have time to set up a
sim, but try some experimenting. Remember, it can't use a username that
that doesn't exist, and NT doesn't let you assign to unknown numeric user
IDs. This should then work. I don't have time to set up a sim, but you
get the idea.
It's potentially a lot of work. Anybody know of a way to script user
creation in Windoze?
Tim Conway
tim.conway at philips.com
303.682.4917
Philips Semiconductor - Longmont TC
1880 Industrial Circle, Suite D
Longmont, CO 80501
Available via SameTime Connect within Philips, n9hmg on AIM
perl -e 'print pack(nnnnnnnnnnnn,
19061,29556,8289,28271,29800,25970,8304,25970,27680,26721,25451,25970),
".\n" '
"There are some who call me.... Tim?"
"Roger Hales" <hales at q-net.net.au>
Sent by: rsync-admin at lists.samba.org
03/30/2002 08:41 AM
To: <rsync at lists.samba.org>
cc: (bcc: Tim Conway/LMT/SC/PHILIPS)
Subject: File Owner, Group and Permissions for Win2000
Classification:
Hi,
I need to mirror some Linux directories on a Win2000 box but the owner,
group and permissions are lost. I realize Win2000 does not use the same
system but thought there may be some way around it with cygwin. Is it
possible to mimick /etc/passwd to preserve ownership etc? Is there a
better solution?
Roger
More information about the rsync
mailing list