default /etc/passwd contents

Egor Duda deo@logos-m.ru
Thu Jun 17 12:08:00 GMT 1999


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



More information about the Cygwin-developers mailing list