delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2025/04/11/19:41:06

DMARC-Filter: OpenDMARC Filter v1.4.2 delorie.com 53BNf68i4031333
Authentication-Results: delorie.com; dmarc=pass (p=none dis=none) header.from=cygwin.com
Authentication-Results: delorie.com; spf=pass smtp.mailfrom=cygwin.com
DKIM-Filter: OpenDKIM Filter v2.11.0 delorie.com 53BNf68i4031333
Authentication-Results: delorie.com;
dkim=pass (1024-bit key, unprotected) header.d=cygwin.com header.i=@cygwin.com header.a=rsa-sha256 header.s=default header.b=SACyD2jp
X-Recipient: archive-cygwin AT delorie DOT com
DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 1DE53382E2A9
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com;
s=default; t=1744414864;
bh=ZABSjN+33lmVOXJoLK/rVrbElUvgQSp38q4BIetJOZM=;
h=Date:Subject:To:References:In-Reply-To:List-Id:List-Unsubscribe:
List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To:Cc:
From;
b=SACyD2jp7F1a5izkqfJKk3g57cRKhZ+1uuqAntNJUjrR1hruqT/2DhEsyyBDV3UVW
5hUGqczhdMlgTTlKUeLqRtKNCovgrxOnUhgif53zuEuSG38JgK8Ge2JNgG7uByG2yh
7peB8d+dc6QXrrvucFEsFD5If7BEerm3QLKrM6xg=
X-Original-To: cygwin AT cygwin DOT com
Delivered-To: cygwin AT cygwin DOT com
DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 721C4385DDFA
ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 721C4385DDFA
ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1744414805; cv=none;
b=GOls4uKWRTBfnEVhWzgUW2QjmFcKDQj/DGijf7XjD0Fg3Ud77qkTxJEk5zxXpgDVRBU8Y/aL/Dx3+cJ4+oi2Y+6CbSkwhoCnaTn0yx8nit0STvRVZkkzJbXDxFE/u0ZArWBv97ol7NZvwfCDAZpJmLJ1jEqOdY6ZLnq0pyqpABc=
ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key;
t=1744414805; c=relaxed/simple;
bh=RcEAHz+mJMQu9rSk1lrT+XDVYQg6JSkyXTSdL/clHJg=;
h=Message-ID:Date:MIME-Version:From:Subject:To:DKIM-Signature;
b=u50SZuwCqYKF7u7b1t3NqTj+A70IJbCGqyazhTbzSl9D19pF06II3lsVDJ1+C/QcoNsH3OMKNabjletaFt4sWehAh7D52Aq+qeJTzNqIcVgvgealzgw9D/rBvbEllSXArNbi8nI0F7M2A3toFNHqdJGb/0z38nzrGKWYrzP6qoA=
ARC-Authentication-Results: i=1; server2.sourceware.org
DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 721C4385DDFA
Message-ID: <2dd0f1a8-57e4-4a6a-b845-96d54f48e017@SystematicSW.ab.ca>
Date: Fri, 11 Apr 2025 17:40:02 -0600
MIME-Version: 1.0
User-Agent: Mozilla Thunderbird
Subject: Re: Modify bash shell script so it runs in elevated admin mode on Win
explorer double click?
To: cygwin AT cygwin DOT com
References: <CAN0SSYxwQbUr4uG-iv0RgvSw9QK_OcHE7sZ4EJv-65ZonJ5qYw AT mail DOT gmail DOT com>
<294d1297-bfe2-47ed-960d-eb2d54af9318 AT SystematicSW DOT ab DOT ca>
<CAN0SSYwWTt_P4FbfW1C3GkLZ8Ob+5c+Kw8f9KnaZy=jPSfmLpg AT mail DOT gmail DOT com>
Organization: Systematic Software
In-Reply-To: <CAN0SSYwWTt_P4FbfW1C3GkLZ8Ob+5c+Kw8f9KnaZy=jPSfmLpg@mail.gmail.com>
X-Rspamd-Queue-Id: 99C5720028
X-Stat-Signature: w5ia4ebw69x1x35y6969tpocof55mebt
X-Rspamd-Server: rspamout01
X-Session-Marker: 427269616E2E496E676C69734053797374656D6174696353572E61622E6361
X-Session-ID: U2FsdGVkX1+pop88armg42uHz4uzykFGGoPiSNih0l4=
X-HE-Tag: 1744414803-97141
X-HE-Meta: U2FsdGVkX1+nHpuQAWn9m5IriWpOTnvdHQ9QQG1Rlqg0GfS2wHgJlAUg3GZgawMnJk/mMCsaZy1h1PK1cCbA0Up297/jVzNHl0zzlflkeax9C0oTf16s0BhXxO+m3g7ZeqSAwzooLsclzEqNA4IGOOOgkIisGmCn/Ha01eYjqc+NUdZ0V7T/YC5zN6IzFcApE082gM6le6mhP5szO+/EYs1G9DpEctSvjxht/0HuUoOVVajgR1v5bzM3rrceziBcOTbmzu65FIlEuFi/utbI9ioAr5S96saeq7UpaT9UylU1nfCGcFM0imFMU1opIjk+kczrRrbZsMfmf2nhraaTnexd+SUbeo5l3+Wsj8MZ+7BXmRCrtXXT1n/+2u0CyQGToCQGukRrjAVwm24EHEraaw==
X-BeenThere: cygwin AT cygwin DOT com
X-Mailman-Version: 2.1.30
List-Id: General Cygwin discussions and problem reports <cygwin.cygwin.com>
List-Unsubscribe: <https://cygwin.com/mailman/options/cygwin>,
<mailto:cygwin-request AT cygwin DOT com?subject=unsubscribe>
List-Archive: <https://cygwin.com/pipermail/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-request AT cygwin DOT com?subject=help>
List-Subscribe: <https://cygwin.com/mailman/listinfo/cygwin>,
<mailto:cygwin-request AT cygwin DOT com?subject=subscribe>
From: Brian Inglis via Cygwin <cygwin AT cygwin DOT com>
Reply-To: cygwin AT cygwin DOT com
Cc: Brian Inglis <Brian DOT Inglis AT SystematicSW DOT ab DOT ca>
Errors-To: cygwin-bounces~archive-cygwin=delorie DOT com AT cygwin DOT com
Sender: "Cygwin" <cygwin-bounces~archive-cygwin=delorie DOT com AT cygwin DOT com>
X-MIME-Autoconverted: from base64 to 8bit by delorie.com id 53BNf68i4031333

On 2025-04-11 10:46, Mark Liam Brown via Cygwin wrote:
> On Fri, Apr 11, 2025 at 6:32 PM Brian Inglis via Cygwin
> <cygwin AT cygwin DOT com> wrote:
>>
>> On 2025-04-11 10:21, Mark Liam Brown via Cygwin wrote:
>>> Greetings!
>>>
>>> How can I modify a Cygwin bash script so it runs in elevated
>>> Administrator mode when someone double-clicks it in Windows Explorer?
>>
>> Use a Run as admin shortcut?
> 
> How can I create one from a Makefile or bash script with Cygwin tools?

Cygwin cygutils mkshortcut with target /proc/cygdrive/c/WINDOWS/system32/runas
args /user:ADMINISTRATOR "/bin/...sh .../script" - not clear if paths in args 
are converted or not?

-- 
Take care. Thanks, Brian Inglis              Calgary, Alberta, Canada

La perfection est atteinte                   Perfection is achieved
non pas lorsqu'il n'y a plus rien à ajouter  not when there is no more to add
mais lorsqu'il n'y a plus rien à retrancher  but when there is no more to cut
                                 -- Antoine de Saint-Exupéry

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

- Raw text -


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