Larry Hall (Cygwin) wrote: > On 01/22/2010 04:21 AM, Gary . wrote: ... > > I added a new user "svn" and a new group "subversion-user", basically > > following http://www.cygwin.com/ml/cygwin/2005-07/msg00933.html with > > the addition of also doing mkgroup -l -g subversion-user>> > > /etc/group. ... > > I also want to be able to work on another machine in a similar manner, > > so did the same things on that machine regarding user and group as I > > did on the first. My suspicion is that I shouldn't have, I should have > > done something else instead, because I see > > g...@mimosa ~ > > $ ls -l /svn/db > > total 14 > > -rw-r--r--+ 1 gary Kein 2 2010-01-22 09:34 > > current > > -r--r--r-- 1 svn subversion-user 22 2010-01-22 08:22 > > format > > -rw-r--r-- 1 svn subversion-user 5 2010-01-22 08:22 > > fs-type > > -rw-r--r-- 1 svn subversion-user 1920 2010-01-22 08:22 > > fsfs.conf > > (etc.) > > from the first machine... > > ...but see > > g...@sunflower ~ > > $ ls -l /svn/db > > total 14 > > -rw-r--r--+ 1 ???????? ???????? 2 2010-01-22 09:34 current > > -r--r--r-- 1 ???????? ???????? 22 2010-01-22 08:22 format > > -rw-r--r-- 1 ???????? ???????? 5 2010-01-22 08:22 fs-type > > -rw-r--r-- 1 ???????? ???????? 1920 2010-01-22 08:22 fsfs.conf > > (etc.) > > from the second.
> The ???????? means that Cygwin on the second machine doesn't know the owner > 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: g...@mimosa ~ $ mkgroup -l -g subversion-user subversion-user:S-1-5-21-1715567821-220523388-682003330-1016:1016: g...@mimosa ~ $ mkpasswd -l -u svn svn:unused:1015:513:U-MIMOSA\svn,S-1-5-21-1715567821-220523388-682003330-1015:/home/svn:/bin/bash g...@sunflower ~ $ mkgroup -l -g subversion-user subversion-user:S-1-5-21-1004336348-492894223-1060284298-1007:1007: g...@sunflower ~ $ mkpasswd -l -u svn svn:unused:1006:513:U-SUNFLOWER\svn,S-1-5-21-1004336348-492894223-1060284298-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