X-Recipient: archive-cygwin AT delorie DOT com X-Spam-Check-By: sourceware.org Date: Mon, 21 Apr 2008 10:50:24 +0200 From: Corinna Vinschen To: cygwin AT cygwin DOT com Subject: Re: PATCH: login under privileged user != SYSTEM Message-ID: <20080421085024.GS23852@calimero.vinschen.de> Reply-To: cygwin AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com References: <4806E4C6 DOT 1080609 AT cwilson DOT fastmail DOT fm> <20080417095105 DOT GA23852 AT calimero DOT vinschen DOT de> <48085CA1 DOT 9070709 AT cwilson DOT fastmail DOT fm> <20080418094954 DOT GJ23852 AT calimero DOT vinschen DOT de> <480988B9 DOT 9070400 AT cwilson DOT fastmail DOT fm> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <480988B9.9070400@cwilson.fastmail.fm> User-Agent: Mutt/1.5.16 (2007-06-09) Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com On Apr 19 01:52, Charles Wilson wrote: > Corinna Vinschen wrote: >> On Apr 18 04:32, Charles Wilson wrote: >>> So, I'm still not checking that the uid specified is a member of the >>> local Administrators group. > > Now I am. See below. > >> As for an account being Administrator, and apart from special accounts >> like SYSTEM or LOCAL_SERVICE... >> What about just checking the value of PUSER_INFO_3->usri3_priv? It may >> contain the value USER_PRIV_ADMIN. That should be sufficient, afaics. > > That works, even on Vista. I've uploaded a new login-1.9-8 as a test > release. Please take a look (I'll make a more formal 'avail for test' > announcement later). I saw you did already. Thanks, Corinna -- Corinna Vinschen Please, send mails regarding Cygwin to Cygwin Project Co-Leader cygwin AT cygwin DOT com Red Hat -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/