delorie.com/archives/browse.cgi | search |
X-Recipient: | archive-cygwin AT delorie DOT com |
X-Spam-Check-By: | sourceware.org |
Message-ID: | <480988B9.9070400@cwilson.fastmail.fm> |
Date: | Sat, 19 Apr 2008 01:52:57 -0400 |
From: | Charles Wilson <cygwin AT cwilson DOT fastmail DOT fm> |
User-Agent: | Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.8.1.12) Gecko/20080213 Thunderbird/2.0.0.12 Mnenhy/0.7.5.666 |
MIME-Version: | 1.0 |
To: | cygwin AT cygwin DOT com |
Subject: | Re: PATCH: login under privileged user != SYSTEM |
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> |
In-Reply-To: | <20080418094954.GJ23852@calimero.vinschen.de> |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
List-Id: | <cygwin.cygwin.com> |
List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
List-Archive: | <http://sourceware.org/ml/cygwin/> |
List-Post: | <mailto:cygwin AT cygwin DOT com> |
List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs> |
Sender: | cygwin-owner AT cygwin DOT com |
Mail-Followup-To: | cygwin AT cygwin DOT com |
Delivered-To: | mailing list cygwin AT cygwin DOT com |
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). -- Chuck -- 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/
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |