This is the mail archive of the cygwin mailing list for the Cygwin project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: sshd on vista error "initgroups: Permission denied" (cygwin-1.7)

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 Vinschen                  Please, send mails regarding Cygwin to
Cygwin Project Co-Leader          cygwin AT cygwin DOT com
Red Hat

Unsubscribe info:
Problem reports:

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]