delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2013/04/04/13:24:41

X-Recipient: archive-cygwin AT delorie DOT com
DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:date:from:to:subject:message-id:reply-to
:references:mime-version:content-type:in-reply-to; q=dns; s=
default; b=M93LiS8cHyb64qqY/qrKBZXAKCTbXy5Zj1Az4AHbaEKNaLEnQ3u5D
ncX295bpNYAiE/LXsH5MgZamCb8Em+6w/z7EocqH+qPWPLRNZMFYib1qjfAoxyMF
IcCZu5pDP1B0NaME82jjhKy23Jk5Q2awow5AGna3lHcQuLzecqCfAw=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:date:from:to:subject:message-id:reply-to
:references:mime-version:content-type:in-reply-to; s=default;
bh=1oCOkwE1e0C8+tQYbKbGVoDMiAM=; b=Qza4OShZwJvcf+gWW1Elus8AVfJU
ePqrZCfMBEZcLHZKFPO1nMrzat4s+A4SzzoNage7CJtXMM3hH82hRb2ffQx13krI
35+4rwyRTl5Nq16rlcJLqz2ShlkBoHra+vjjyn5kaKaQO/RaYWL4mLEz1R5JIbM5
vn8f2/xT9YMdGV8=
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
X-Spam-SWARE-Status: No, score=-1.7 required=5.0 tests=AWL,BAYES_00,TW_NL autolearn=ham version=3.3.1
Date: Thu, 4 Apr 2013 19:24:12 +0200
From: Corinna Vinschen <corinna-cygwin AT cygwin DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: winln for native symlinks
Message-ID: <20130404172412.GA21356@calimero.vinschen.de>
Reply-To: cygwin AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
References: <515BD718 DOT 8080605 AT dancol DOT org> <515BE1BF DOT 5010803 AT towo DOT net> <515BE36F DOT 6030701 AT dancol DOT org> <515DA0D9 DOT 7050209 AT towo DOT net> <515DA8F9 DOT 9000208 AT openafs DOT org>
MIME-Version: 1.0
In-Reply-To: <515DA8F9.9000208@openafs.org>
User-Agent: Mutt/1.5.21 (2010-09-15)

On Apr  4 12:23, Jeffrey Altman wrote:
> On 4/4/2013 11:48 AM, Thomas Wolff wrote:
> > It shows this error message:
> > winln: you don't permission to create symbolic links. Run, as
> > administrator,
> > winln:   editrights -a SeCreateSymbolicLinkPrivilege -a $YOUR_USER
> > which should be fixed somehow like this:
> > You don't have permission to create symbolic links. Run, as administrator,
> >         editrights -a SeCreateSymbolicLinkPrivilege -u $USER
> > Moreover, this advice does not help. Even after having issued this
> > command as administrator, winln -s still works as administrator only.
> 
> The SeCreateSymbolicLinkPrivilege privilege is filtered by User Account
> Control (UAC).  If your account is a member of the "Administrators"
> group, then the process needs to be run with your elevated credentials
> in order to make use of the SeCreateSymbolicLinkPrivilege privilege.
> 
> The "Administrator" account always runs in an elevated state and
> accounts that are not members of the "Administrators" group do not have
> their security tokens filtered by UAC.
> 
> Does Cygwin permit binaries to be built with manifests?  If so,
> winln.exe could include an embedded manifest that indicates that
> elevated status is required.  The user would then be prompted by UAC
> whenever the command is used.

That doesn't work.  You have to run in an elevated console or an
elevated mintty.  Cygwin uses CreateProcess to start child processes and
there's no way to make CreateProcess start the UAC confirmation process.
Only ShellExecute{Ex} can do that.


Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Maintainer                 cygwin AT cygwin DOT com
Red Hat

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

- Raw text -


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