This is the mail archive of the cygwin@sources.redhat.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: CVS permissions problem with network drive


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]