From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 29723 invoked by alias); 24 May 2011 11:32:19 -0000 Received: (qmail 29714 invoked by uid 22791); 24 May 2011 11:32:18 -0000 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 Received: from mail-qw0-f43.google.com (HELO mail-qw0-f43.google.com) (209.85.216.43) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Tue, 24 May 2011 11:32:04 +0000 Received: by qwf6 with SMTP id 6so4222358qwf.2 for ; Tue, 24 May 2011 04:32:03 -0700 (PDT) MIME-Version: 1.0 Received: by 10.224.217.8 with SMTP id hk8mr2589008qab.96.1306236723780; Tue, 24 May 2011 04:32:03 -0700 (PDT) Received: by 10.229.43.18 with HTTP; Tue, 24 May 2011 04:32:03 -0700 (PDT) Date: Tue, 24 May 2011 11:32:00 -0000 Message-ID: Subject: mintty vs runas (was: Re: CYGWIN=tty round 2) From: Andy Koppe To: cygwin@cygwin.com Content-Type: text/plain; charset=UTF-8 X-IsSubscribed: yes Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com X-SW-Source: 2011-05/txt/msg00345.txt.bz2 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