This is the mail archive of the cygwin@cygwin.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]
Other format: [Raw text]

getting UID/GID of 0


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/


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