Mailing-List: contact cygwin-help@sourceware.cygnus.com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe@sources.redhat.com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin@sources.redhat.com>
List-Help: <mailto:cygwin-help@sources.redhat.com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner@sources.redhat.com
Delivered-To: mailing list cygwin@sources.redhat.com
From: Corinna Vinschen <cygwin@cygwin.com>
Date: Wed, 13 Dec 2000 23:36:13 +0100
X-Mailer: KMail [version 1.1.99]
Content-Type: text/plain;
  charset="us-ascii"
To: cygwin <cygwin@cygwin.com>
References: <OF4452111B.B0F21FC3-ON862569B2.00610F4F@mmm.com> <0012131108080H.05746@cygbert> <3A37C57B.8F363AED@ece.gatech.edu>
In-Reply-To: <3A37C57B.8F363AED@ece.gatech.edu>
Subject: Re: CVS permissions problem with network drive
MIME-Version: 1.0
Message-Id: <00121323361311.05746@cygbert>
Content-Transfer-Encoding: 8bit
X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id RAA03232

On Wednesday 13 December 2000 19:52, Charles Wilson wrote:
> One difference is that the 'cwilson' user has different UID's on the
> local and remote system (1000 on local, 1002 on remote).  After
> adding this line to my local /etc/passwd (ignore linewrapping):
>
> csw_belg::1002:513:Charles Wilson on
> Belgarion,S-1-5-21-144006512-467950226-1660491571-1002://belgarion/eh
>lana/Users/cwilson:/bin/bash
>
> Now, at least, ls on the remote system shows 'csw_belg' as owner --
> of the NEW file -- instead of '1002'.  I notice that your (Corinna's)
> username on your remote system is 'corinna' -- just as it is
> 'corinna' on your local system -- is that because your UID is the
> same on both systems?  Could that difference cause the disparity in
> our results? (Also, I notice that 'corinna' is a member of the 'root'
> (Administrators?) group on the remote system).

Yes, I changed my passwd and group files so that in /etc/passwd
`Adminstrator' (RID 500) is mapped to `root' (UID 0) and in
/etc/group `Adminstrators' (S-1-5-32-544) is mapped to `root' (GID 0).
My `corinna' user entry in /etc/passwd contains contains GID 0 as
well, so I'm member of the `root' group in Cygwin (and member of
the `Administrators' group in NT of course, too). I did this on
both systems for convenience.

However, this shouldn't result in the different behaviour.
The usernames are identical but the RIDs on both systems are
different (1000 and 1003). A `ls -l' on an already existing file
shows according to that:

$ cd //cvaio/corinna
$ ls -l x.c
-rw-rw-r--   1 1003     root         1132 Nov  7 16:55 x.c

while the touch uses the correct SID of the source system:

$ touch foo
$ ls -l foo
-rw-rw-r--   1 corinna  root            0 Dec 13 23:27 foo

Could you please send me (to my personal account) straces of
`touch foo' and `chmod 666 foo'? Gzipped would be nice.

Would you mind to use a special test DLL later, potentially?
Perhaps the current trace output isn't sufficient to find the
reason.

Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Developer                                mailto:cygwin@cygwin.com
Red Hat, Inc.

--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com

