delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2008/04/21/04:50:50

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 <corinna-cygwin AT cygwin DOT com>
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
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
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT 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

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/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019