delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2008/11/13/08:55:08

X-Recipient: archive-cygwin AT delorie DOT com
X-Spam-Check-By: sourceware.org
Date: Thu, 13 Nov 2008 14:57:20 +0100
From: Corinna Vinschen <corinna-cygwin AT cygwin DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: sshd on vista error "initgroups: Permission denied" (cygwin-1.7)
Message-ID: <20081113135720.GO17719@calimero.vinschen.de>
Reply-To: cygwin AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
References: <corinna-cygwin AT cygwin DOT com> <95155 DOT 1226537859 AT maeder DOT org> <20081113103543 DOT GM17719 AT calimero DOT vinschen DOT de>
MIME-Version: 1.0
In-Reply-To: <20081113103543.GM17719@calimero.vinschen.de>
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 Nov 13 11:35, Corinna Vinschen wrote:
> On Nov 12 16:57, Herb Maeder wrote:
> > Bum deal.  But thanks for the explanation.  That clarifies what I was
> > seeing.
> 
> Actually there is a way to elevate a console application which is the
> manifest file.  Unfortunately this only works for executables, not for
> scripts.
> 
> I didn't try it myself, but maybe something like this works:
> 
>   $ cd /bin
>   $ cp bash.exe bash-elevated.exe
>   $ sed 's/nstall\.exe/bash-elevated.exe/g' < install.exe > bash-elevated.exe.manifest
>   $ sed '1s/bash/bash-elevated/' < ssh-host-config > ssh-host-config-elevated
>   $ ssh-host-config-elevated
> 
> Sometimes adding a manifest file to an executable doesn't work immediately
> due to some cashing in Windows but basically this should work.

On second thought, this can't work.  The manifest file starts the
application with an execution level of "asInvoker" which means *not*
elevated.  Even if you change this to elevated (I don't know the right
level string for this off hand), the problem that you won't get an
elevation prompt when a process gets started through CreateProcess
remains the same.  Too bad.  The mainfests work in one direction, but
they don't in the other.  Baeh.


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