This is the mail archive of the
cygwin-developers@sourceware.cygnus.com
mailing list for the Cygwin project.
Re[2]: default /etc/passwd contents
- To: Corinna Vinschen <corinna@vinschen.de>
- Subject: Re[2]: default /etc/passwd contents
- From: Egor Duda <deo@logos-m.ru>
- Date: Thu, 17 Jun 1999 22:55:20 +0400
- CC: cygwin-developers <cygwin-developers@sourceware.cygnus.com>
- Organization: DEO
- References: <375D805A.90C9D21B@vinschen.de>
- Reply-To: Egor Duda <deo@logos-m.ru>
Hi!
9 June 1999 Corinna Vinschen <corinna@vinschen.de> wrote:
>> You can't get gid, because gid is only meaningful, if it's read from
>> /etc/passwd. Remember: Outside of domains, no primary group exists.
>> You only get name and uid but it should be possible, to use the
>> administrators group (gid 544) as primary group in any case.
CV> Umm, I thought about it once more. This may also work with ntsec.
CV> Would you please try it, Egor?
it seems to work ok under nt with ntsec. Either when logged in as a
member of "administrators" group or as ordinary user. Alas, i have no
'95 or '98 boxes around to check it up there.
ssh, wget and others works just fine on machines without cygwin
installed, and don't complain that "We don't know who are you, so go
away."
CV> This also would be a good choice for the default /etc/group entry.
CV> Instead of using the dummy group `Everyone' which doesn't refer
CV> to any meaningful group, I suggest using the `Administrators'
CV> group (gid 544). We would get the groups native name with the call
CV> `LookupAccountSid (NULL, get_admin_sid (), ...)'!
A patch against snapshot-06-14-1999 is attached.
Egor. mailto:deo@logos-m.ru ICQ 5165414 FidoNet 2:5020/496.19
default_etc_passwd.diff.gz