delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2013/12/03/05:22:22

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=JxDU7BNkHP2Ob9my290D5vdY9bmy/l2yr6sfxp6wxxM4vrYNGdYg/
T5Y/3mFEWkIMvQcFyE3KEaNCYgkG85dd8xTtkCtE95dMUQCM1+hJI1LbsJhS+LRB
cc42aTEmqvI8w6OdK2CG6rvfp4aDLdEcrG4V9ocoNHF9kFJODxcx8k=
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=D7aotahGCnuXGBA1fL1DvYtK4yM=; b=uvapxAkA3Q8dBiBzSvBMk7g6t6po
RPUfadbMo5fvLx4mmPECtbZjtvMy7RyeyKVCBmAAuoDI0QjA2b62MMpf3Z4zh6YS
K+ud+SZyqHF96Rd2Qe9+b3fROgRQEdUv/KeqgyEvjCZtFoo9u5QtdT6Wt+AFd6MH
Kpt+IgJ3Im/GOaM=
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=1.5 required=5.0 tests=AWL,BAYES_50,RDNS_NONE,URIBL_BLOCKED autolearn=no version=3.3.2
X-HELO: calimero.vinschen.de
Date: Tue, 3 Dec 2013 11:21:41 +0100
From: Corinna Vinschen <corinna-cygwin AT cygwin DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: chere + mintty doesn't work with mapped drives
Message-ID: <20131203102141.GE11800@calimero.vinschen.de>
Reply-To: cygwin AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT 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> <cb96aa9da1e44e2b825f20614a91c484 AT CO2PR07MB556 DOT namprd07 DOT prod DOT outlook DOT com>
MIME-Version: 1.0
In-Reply-To: <cb96aa9da1e44e2b825f20614a91c484@CO2PR07MB556.namprd07.prod.outlook.com>
User-Agent: Mutt/1.5.21 (2010-09-15)

--0IvGJv3f9h+YhkrH
Content-Type: text/plain; charset=utf-8
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Dec  2 23:58, Charles Butterfield wrote:
> > -----Original Message-----
> > From: Dave Kilroy [mailto:BZZZZZ]


http://cygwin.com/acronyms/#PCYMTNQREAIYR


> > 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/app=
s is
> > a directory is the key.
>=20
> SOLVED
>=20
> 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 i=
nstalled
> "Cygwin Terminal" shortcut), that had the checkbox=20
> "Compatibility|Run this program as an administrator" enabled.
>=20
> I ASSUMED this would only affect mintty when launched from this shortcut.
>=20
> HOWEVER, it seems that this changes a property associated with mintty
> regardless of how it is launched.  Apparently another "Wonder of Windows".
>=20
> Unchecking the "run as admin" fixed the problem associated with accessing
> the mapped drives everywhere (including the "Bash Prompt Here" xhere
> Processing).
>=20
> 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 s=
eem
> to require admin privs and simply fail without any attempt to escalate (w=
hich
> 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.
>=20=20
> 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?

You seem to have gotten something else wrong here.  If the shortcut has
the "run as admin" flag, it only affects this shortcut.  I have two
shortcuts on the desktop, one called "Cygwin64 Terminal", the other one
"Cygwin64 Admin".  The second shortcut is a simple copy of the first
one, so it starts "C:\cygwin64\bin\mintty.exe -i /Cygwin-Terminal.ico -"
just like the first.  Only the second shortcut has the "Run as admin"
flag set.  If I start mintty from the first shell, id prints:

  uid=3D11001(corinna) gid=3D11125(vinschen) groups=3D11125(vinschen),
  559(Performance Log Users),545(Users),
  10572(Denied RODC Password Replication Group),10513(Domain Users)

If I start mintty from the second shortcut, id prints

  uid=3D11001(corinna) gid=3D11125(vinschen) groups=3D11125(vinschen),
  544(Administrators),559(Performance Log Users),545(Users),        !!!
  10572(Denied RODC Password Replication Group),10513(Domain Users)

And, btw., I created the Admin shortcut just for testing.  Otherwise
I usually only do a right click on the shortcut and use the "Run as
administrator" entry there.  It's much less hassle than creating
an extra shortcut for this task.


Corinna

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

--0IvGJv3f9h+YhkrH
Content-Type: application/pgp-signature

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.15 (GNU/Linux)

iQIcBAEBAgAGBQJSnbC1AAoJEPU2Bp2uRE+g3EkQAIhw0uiDq7AoquPQXkRemYHq
HVzznE9uQTVOQWY6psLZI3SzA1Gt9Scc/gQGgW7APCDU553U2kL8o2iM+GRxlUzx
h+dBilHEIJfjrWwezKtOpmc+sfE5GDo8S9mZi62Osd7zhatISP6Jl84xdxVO8ZKL
Sw959CyTCOCBcHDWXMi+5wuS1PlIyqN7Y7t7KvGffL6cdrItGXviUlI1di9x/dHc
MaqV1QOaLepWTt6jbaauX0zBhHecgjDBUWSDUs6o1WgQZJgsdxzHuR3TWDjTGtfe
7+mLCx0cKAVsK3t0ysFtLx4vJvq4spqv6S6VZQVDBWoBftc/GbmmgSdsVABUKDzo
WZTzKqYiDWY823Lutpq8QpXfx+45tdpftObE8N1k2+JGD2oWj7BFQPeJeqtrDZ7K
p2nFEGtBxfCIxm9Ee/BS65rHLFC40Au0Z1VxFSo7qTxJl/gETKy8jBIDLdzxPQP6
c6I0akaVcO/qd05PubWZ9nb1ABp65Ju5BdD2j4LM7ecr7/TJaplIzmX0xCaoCURv
PeSyrMJCPFAEYatFz5oiY8jHiebPNC67JG1mVZxI8p3asbttXa8MFLEwCmJnKK2U
YrNVPFUqvNpTDJR6MujvM1bb6F+rPUeQm2B2c3wxavKf7zEtm+QWfAPC32zro6cz
G/skby0k3nCOIAK0CENe
=WqII
-----END PGP SIGNATURE-----

--0IvGJv3f9h+YhkrH--

- Raw text -


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