delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2003/07/08/08:45:35

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/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
X-Info: This message was accepted for relay by
smtp03.mrf.mail.rcn.net as the sender used SMTP authentication
X-Trace: UmFuZG9tSVYum5pM7YBDDZw18ZuCvqoRHCobhBdnvjXVDvrIjmQGJhFAG5TZL+OW
Message-ID: <3F0ABC45.7000502@cygwin.com>
Date: Tue, 08 Jul 2003 08:42:45 -0400
From: Larry Hall <cygwin-lh AT cygwin DOT com>
Reply-To: cygwin AT cygwin DOT com
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.4) Gecko/20030529
X-Accept-Language: en-us, en
MIME-Version: 1.0
To: andrew brian clegg <a DOT clegg AT mail DOT cryst DOT bbk DOT ac DOT uk>
CC: cygwin AT cygwin DOT com
Subject: Re: users and startup scripts (FAQ alert)
References: <Pine DOT LNX DOT 4 DOT 44 DOT 0307081057530 DOT 4255-100000 AT sark DOT cryst DOT bbk DOT ac DOT uk>
In-Reply-To: <Pine.LNX.4.44.0307081057530.4255-100000@sark.cryst.bbk.ac.uk>

andrew brian clegg wrote:

> On Mon, 7 Jul 2003, Igor Pechtchanski wrote:
> 
> 
>>The preferred method for switching users is by running "ssh
>>user AT localhost" (after setting up sshd, obviously).  I'm guessing the
>>above FAQ entry should be updated as well.
> 
> 
> I hope this isn't rehashing old discussions, but I'd always assumed from 
> the number of times people talk about using ssh to switch users that there 
> was something inherently disadvantageous about using (say)
> 
> runas /user:Administrator "c:\cygwin\bin\bash --login -i"
> 
> or setting up a shortcut with the 'run as different user' checkbox set (in 
> Win2K; I think the semantics are slightly different in XP IIRC).
> 
> But now I've tried it, it works fine for me... Is the only drawback that 
> this doesn't work in DOS versions of Windows, or is there some other 
> reason why it's not recommended?


This list tends to recommend Cygwin alternatives, although I've seen
the 'runas' approach mentioned on this list as well.  The only negative
I can see to using it would be if you're launching it from a Cygwin
shell and 'tty' is set in your CYGWIN environment variable.  In that case,
the output is garbled due to Cygwin's use of pipes for I/O handles.
Otherwise, if you prefer it, use it.


-- 
Larry Hall                              http://www.rfk.com
RFK Partners, Inc.                      (508) 893-9779 - RFK Office
838 Washington Street                   (508) 893-9889 - FAX
Holliston, MA 01746


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

- Raw text -


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