Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Date: Wed, 6 Mar 2002 10:05:03 +0100 From: Corinna Vinschen To: cygwin Subject: Re: 1.3.10 and setgid Message-ID: <20020306100503.O13590@cygbert.vinschen.de> Mail-Followup-To: cygwin References: <3C7E3033 DOT B8599DA7 AT lapo DOT it> <20020228164244 DOT A25136 AT cygbert DOT vinschen DOT de> <3C7E6863 DOT E4D18A6E AT lapo DOT it> <20020301114411 DOT R13590 AT cygbert DOT vinschen DOT de> <40477373777 DOT 20020302011521 AT familiehaase DOT de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <40477373777.20020302011521@familiehaase.de> User-Agent: Mutt/1.3.22.1i On Sat, Mar 02, 2002 at 01:15:21AM +0100, Gerrit P. Haase wrote: > BTW, I have no entry in /etc/group with gid 513, that is my NT4.6a Server > box. On the W2K Server to my right the group exists. > > $ mkgroup -l > Jeder:S-1-1-0:0: > SYSTEM:S-1-5-18:18: > Administratoren:S-1-5-32-544:544: > Benutzer:S-1-5-32-545:545: > ... > > > I'm pretty sure that I never had this group. Is that NT4 server a DC? If so, try if `mkgroup -d' returns the "Domaenenbenutzer" ("Domain Users") group. I just tried `mkgroup -l' on a german NT4 Wkst and I got the group 513: $ mkgroup -l Jeder:S-1-1-0:0: SYSTEM:S-1-5-18:18: Kein:S-1-5-21-2046982008-79955350-526660263-513:513: [...] So it doesn't depend on the NT version. As I already wrote, this group exists always on all NT versions. It's just renamed to "Domain Users" if a system is configured as PDC. For those who are interested. It's a piece of code in mkgroup which always tries to figure out the name of the 513 group when the -l option is given. It's different in each language and isn't returned by the Windows local group enumerator NetLocalGroupEnum(), unfortunately: ================== SNIP ================= if (print_local) { /* * Get `None' group */ len = 256; GetComputerName (name, &len); csid = (PSID) malloc (1024); len = 1024; len2 = 256; LookupAccountName (NULL, name, csid, &len, dom, &len, &use); print_special (print_sids, GetSidIdentifierAuthority (csid), 5, *GetSidSubAuthority (csid, 0), *GetSidSubAuthority (csid, 1), *GetSidSubAuthority (csid, 2), *GetSidSubAuthority (csid, 3), 513, 0, 0, 0); free (csid); } ================== SNAP ================= Corinna -- Corinna Vinschen Please, send mails regarding Cygwin to Cygwin Developer mailto:cygwin AT cygwin DOT com Red Hat, Inc. -- 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/