Mailing-List: contact cygwin-developers-help AT sourceware DOT cygnus DOT com; run by ezmlm Sender: cygwin-developers-owner AT sourceware DOT cygnus DOT com Delivered-To: mailing list cygwin-developers AT sourceware DOT cygnus DOT com Message-ID: <375D805A.90C9D21B@vinschen.de> Date: Tue, 08 Jun 1999 22:43:06 +0200 From: Corinna Vinschen X-Mailer: Mozilla 4.6 [en] (WinNT; I) X-Accept-Language: de,en MIME-Version: 1.0 To: Chris Faylor , Egor Duda , cygwin-developers Subject: Re: default /etc/passwd contents References: <0873 DOT 990608 AT logos-m DOT ru> <19990608131346 DOT A1137 AT cygnus DOT com> <375D7CBF DOT 27DAD5AA AT vinschen DOT de> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Corinna Vinschen 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. Umm, I thought about it once more. This may also work with ntsec. Would you please try it, Egor? It then would be better, to insert /bin/sh as shell again in this entry, because this would be compatible to the standard behaviour. This also would be a good choice for the default /etc/group entry. Instead of using the dummy group `Everyone' which doesn't refer to any meaningful group, I suggest using the `Administrators' group (gid 544). We would get the groups native name with the call `LookupAccountSid (NULL, get_admin_sid (), ...)'! After Egor's test, I would then implement an according change to `grp.cc'. Regards, Corinna -- new mail address: mailto:corinna AT vinschen DOT de