delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2013/12/02/18:59:09

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:from:to:cc:subject:date:message-id:references
:in-reply-to:content-type:content-transfer-encoding
:mime-version; q=dns; s=default; b=uyCBNeVAr1NQg/Qm0mUIK6GWem9XL
WmyX8sVc9fzbaer8hk0cIGipcKHQeM1atI+1WZZ2zHY7lofWsoBY91A0bj5FOdVg
O7JxbgQKrx8V7Rb9BqkOHtauIK3yIJNopZl722W5spqEZivY843cCv5cYJ2+tuv9
sGBd63cXcmsbgE=
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:from:to:cc:subject:date:message-id:references
:in-reply-to:content-type:content-transfer-encoding
:mime-version; s=default; bh=0KOuaYaTcaiyee2KH32Xi1qa8NM=; b=KVA
HG1hILS9KAmCJGKxeGZMDPDBJL1NGE1ByvvKmG+bZ7o821Sy2gtR1cqtS67Yh9i4
IwRIp5b7tA9GNPwNunm8bt6FAgU1Qi+6w6TzHqmC+HbH15Mh6gOIA2Q/GAt2ECx0
1CqDQKzjsF/5g8wX9pnVcvn4+VXrn3bEPC6efKD4=
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
Authentication-Results: sourceware.org; auth=none
X-Virus-Found: No
X-Spam-SWARE-Status: No, score=2.6 required=5.0 tests=AWL,BAYES_00,MIME_BASE64_BLANKS,RDNS_NONE,SPF_NEUTRAL autolearn=no version=3.3.2
X-HELO: na01-by2-obe.outbound.protection.outlook.com
From: Charles Butterfield <charles DOT butterfield AT nextcentury DOT com>
To: Dave Kilroy <kilroyd AT googlemail DOT com>,
"cygwin AT cygwin DOT com" <cygwin AT cygwin DOT com>
CC: Charles Butterfield <charles DOT butterfield AT nextcentury DOT com>
Subject: RE: chere + mintty doesn't work with mapped drives
Date: Mon, 2 Dec 2013 23:58:23 +0000
Message-ID: <cb96aa9da1e44e2b825f20614a91c484@CO2PR07MB556.namprd07.prod.outlook.com>
References: <00ce27600b2e404cbb8f9e56c3994e8c AT CO2PR07MB556 DOT namprd07 DOT prod DOT outlook DOT com> <e438b5ebbe69401b843342394f5a5ea9 AT CO2PR07MB556 DOT namprd07 DOT prod DOT outlook DOT com> <5299A4BF DOT 8070201 AT gmail DOT com> <e25e9576d2a2415ea90019117708d9d5 AT CO2PR07MB556 DOT namprd07 DOT prod DOT outlook DOT com> <529B529F DOT 7080608 AT googlemail DOT com> <9ce71b17ad604e5c943e3c3731b145d1 AT CO2PR07MB556 DOT namprd07 DOT prod DOT outlook DOT com> <20131201210920 DOT GA11800 AT calimero DOT vinschen DOT de> <529CDBE8 DOT 8000003 AT gmail DOT com>
In-Reply-To: <529CDBE8.8000003@gmail.com>
x-forefront-prvs: 0048BCF4DA
x-forefront-antispam-report: SFV:NSPM;SFS:(479174003)(51704005)(199002)(189002)(13464003)(24454002)(49866001)(74662001)(74876001)(83072001)(4396001)(54356001)(76576001)(74706001)(51856001)(50986001)(76796001)(87266001)(81816001)(46102001)(47976001)(31966008)(56816005)(90146001)(54316002)(81542001)(74366001)(74316001)(2656002)(87936001)(76786001)(47736001)(19580395003)(80976001)(76482001)(69226001)(83322001)(81342001)(63696002)(19580405001)(74502001)(56776001)(85306002)(79102001)(77982001)(81686001)(65816001)(59766001)(47446002)(33646001)(66066001)(80022001)(53806001)(85852002)(24736002);DIR:OUT;SFP:;SCL:1;SRVR:CO2PR07MB556;H:CO2PR07MB556.namprd07.prod.outlook.com;CLIP:72.81.217.80;FPR:;RD:InfoNoRecords;A:1;MX:1;LANG:en;
MIME-Version: 1.0
X-OriginatorOrg: nextcentury.com
X-MIME-Autoconverted: from base64 to 8bit by delorie.com id rB2Nx3FV028023

> -----Original Message-----
> From: Dave Kilroy [mailto:kilroyd AT googlemail DOT com]
> On 01/12/2013 21:09, Corinna Vinschen wrote:
> > Are you starting mintty with "run as administrator" by any chance?
> Corrina's right - check that the same user is being used in both cases.
> I don't think this would explain why it's not working from the context menus
> though. Finding out why bash under mintty doesn't think /cygdrive/y/apps is
> a directory is the key.

SOLVED

Yes, I was starting mintty "as admin" and yes this was the culprit.
I was doing this by using a shortcut (similar, but not identical to the installed
"Cygwin Terminal" shortcut), that had the checkbox 
"Compatibility|Run this program as an administrator" enabled.

I ASSUMED this would only affect mintty when launched from this shortcut.

HOWEVER, it seems that this changes a property associated with mintty
regardless of how it is launched.  Apparently another "Wonder of Windows".

Unchecking the "run as admin" fixed the problem associated with accessing
the mapped drives everywhere (including the "Bash Prompt Here" xhere
Processing).

The reason I was running as admin was that many of the network centric
scripts that I use frequently during certain phases of various projects seem
to require admin privs and simply fail without any attempt to escalate (which
I seem to recall is due to a mismatch between the Windows and Unix
Security models).  I guess I'll have to rethink that approach.
 
Any suggestions on how to have a shortcut (or something similar) that
runs mintty as admin, but has no global effect on other mintty launches?

- Raw text -


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