delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2010/01/23/03:42:54

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=-1.6 required=5.0 tests=AWL,BAYES_00,SARE_MSGID_LONG40
X-Spam-Check-By: sourceware.org
MIME-Version: 1.0
In-Reply-To: <eb3a2d501001220121n520cd810y5efb63cc10a69186@mail.gmail.com>
References: <eb3a2d501001220121n520cd810y5efb63cc10a69186 AT mail DOT gmail DOT com>
Date: Sat, 23 Jan 2010 09:42:44 +0100
Message-ID: <eb3a2d501001230042i667b479apdd0197a2fd653660@mail.gmail.com>
Subject: Re: Problem with svn and users over multiple machines
From: "Gary ." <cygwin AT garydjones DOT name>
To: cygwin AT cygwin DOT com
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com

Larry Hall (Cygwin) wrote:
> On 01/22/2010 04:21 AM, Gary . wrote:
...
> > =A0 =A0I added a new user "svn" and a new group "subversion-user", basi=
cally
> > =A0 =A0following http://www.cygwin.com/ml/cygwin/2005-07/msg00933.html =
with
> > =A0 =A0the addition of also doing mkgroup -l -g subversion-user>>
> > =A0 =A0/etc/group.
...
> > =A0 =A0I also want to be able to work on another machine in a similar m=
anner,
> > =A0 =A0so did the same things on that machine regarding user and group =
as I
> > =A0 =A0did on the first. My suspicion is that I shouldn't have, I shoul=
d have
> > =A0 =A0done something else instead, because I see
> > =A0 =A0gary AT mimosa ~
> > =A0 =A0$ ls -l /svn/db
> > =A0 =A0total 14
> > =A0 =A0-rw-r--r--+ 1 gary =A0 =A0 =A0 =A0 =A0 =A0Kein =A0 =A0 =A0 =A0 =
=A0 =A0 =A0 2 2010-01-22 09:34 current
> > =A0 =A0-r--r--r-- =A01 svn =A0 =A0 =A0 =A0 =A0 =A0 subversion-user =A0 =
22 2010-01-22 08:22 format
> > =A0 =A0-rw-r--r-- =A01 svn =A0 =A0 =A0 =A0 =A0 =A0 subversion-user =A0 =
=A05 2010-01-22 08:22 fs-type
> > =A0 =A0-rw-r--r-- =A01 svn =A0 =A0 =A0 =A0 =A0 =A0 subversion-user 1920=
 2010-01-22 08:22 fsfs.conf
> > =A0 =A0(etc.)
> > =A0 =A0from the first machine...
> > =A0 =A0...but see
> > =A0 =A0gary AT sunflower ~
> > =A0 =A0$ ls -l /svn/db
> > =A0 =A0total 14
> > =A0 =A0-rw-r--r--+ 1 ???????? =A0 =A0 =A0 ???????? =A0 =A02 2010-01-22 =
09:34 current
> > =A0 =A0-r--r--r-- =A01 ???????? =A0 =A0 =A0 ???????? =A0 22 2010-01-22 =
08:22 format
> > =A0 =A0-rw-r--r-- =A01 ???????? =A0 =A0 =A0 ???????? =A0 =A05 2010-01-2=
2 08:22 fs-type
> > =A0 =A0-rw-r--r-- =A01 ???????? =A0 =A0 =A0 ???????? 1920 2010-01-22 08=
:22 fsfs.conf
> > =A0 =A0(etc.)
> > =A0 =A0from the second.

> The ???????? means that Cygwin on the second machine doesn't know the own=
er
> of these files. This means the user and group IDs are missing from the '/=
etc/passwd'
> and '/etc/group' files.

Yeah, that's what I thought, but:

gary AT mimosa ~
$ mkgroup -l -g subversion-user
subversion-user:S-1-5-21-1715567821-220523388-682003330-1016:1016:

gary AT mimosa ~
$ mkpasswd -l -u svn
svn:unused:1015:513:U-MIMOSA\svn,S-1-5-21-1715567821-220523388-682003330-10=
15:/home/svn:/bin/bash

gary AT sunflower ~
$ mkgroup -l -g subversion-user
subversion-user:S-1-5-21-1004336348-492894223-1060284298-1007:1007:

gary AT sunflower ~
$ mkpasswd -l -u svn
svn:unused:1006:513:U-SUNFLOWER\svn,S-1-5-21-1004336348-492894223-106028429=
8-1006:/home/svn:/bin/bash

Clearly, they're different, which is what I mean when I say
"I shouldn't have, I should have done something else instead".

How can I add the user and group to sunflower (the second
machine) and ensure they are identical to those on mimosa,
at least as far as the areas Cygwin is concerned about,
given that they are first added using the Windows util?

> Add them and this problem should go away. See the
> discussion of security in the Cygwin Users Guide for more details.

I will look. Thanks.

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019