delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2011/05/24/07:32:23

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=-2.5 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,RFC_ABUSE_POST,T_TO_NO_BRKTS_FREEMAIL
X-Spam-Check-By: sourceware.org
MIME-Version: 1.0
Date: Tue, 24 May 2011 12:32:03 +0100
Message-ID: <BANLkTikvSxppffaTEEMxA_5ssLLJYk2Xbw@mail.gmail.com>
Subject: mintty vs runas (was: Re: CYGWIN=tty round 2)
From: Andy Koppe <andy DOT koppe AT gmail DOT com>
To: cygwin AT cygwin DOT com
X-IsSubscribed: yes
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

On 23 May 2011 22:24, Angelo Graziosi wrote:
> I want to flag that this:
>
> /cygdrive/c/WINDOWS/system32/runas.exe /user:pippo 'C:\cygwin-2\bin\bash
> --login -i'
>
> works in a dos-like shell (Cygwin.bat) but not in mintty.

That's yet another case of a non-Cygwin program expecting to talk to a
Windows console rather than the pipes underlying Cygwin's pseudo
terminal device implementation. Even runas's help output doesn't work
in mintty, which suggests that it's using console-specific functions
for all its I/O.

> Is there some trick to do the job also in mintty?

Not within it, but you could invoke mintty itself as administrator
with right-click->Run As or by changing its shortcut to invoke it
through runas.

Andy

--
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