delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2001/12/04/02:41:43

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Message-ID: <002b01c17c3d$130d69e0$0319450a@sandos>
From: =?iso-8859-1?Q?John_B=E4ckstrand?= <sandos AT home DOT se>
To: <cygwin AT cygwin DOT com>
Subject: getting UID/GID of 0
Date: Mon, 3 Dec 2001 12:57:09 -0800
MIME-Version: 1.0
X-Priority: 3
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook Express 6.00.2600.0000
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000

I am trying to install debian-cygwin: http://debian-cygwin.sourceforge.net/
I have followed the instructions there for how to get root having UID/GID,
but it doesnt work Im afraid. I am using the ntsec modell, and I have
generated /etc/passwd and /etc/group by using mkgroup -l and mkpasswd -l
respectively. I then tried to edit /etc/passwd, by just removing uneccesare
users first, and then change UID/GID for root (I renamed Administrator to
root) to 0. But when I use telnet to localhost, and log in as root I get
this from id:

uid=500 gid=544

when I log in as sandos I get:

uid=1000(sandos) gid=0(root) groups=0(root)

So, for sandos the GID of 0 seems to work, but not for root. The difference
between those two is that root isnt the name of the account in win2k. But,
according to documentation on "ntsec", that should be possible using newer
versions of cygwin, which I am, if you only have the correct SID in your
files, which I afaics do.

/etc/group:

root:S-1-5-32-544:0:
Users:S-1-5-32-545:545:

/etc/passwd

root:unused_by_nt/2000/xp:0:0:U-SANDOS\Administrator,S-1-5-21-2000478354-158
0436667-854245398-500:/home/root:/bin/bash
sandos:unused_by_nt/2000/xp:1000:0:U-SANDOS\sandos,S-1-5-21-2000478354-15804
36667-854245398-1000:/home/sandos:/bin/bash

Any clues or advise?

---
John Bäckstrand


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


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