Mailing-List: contact cygwin-help@sourceware.cygnus.com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe@sources.redhat.com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin@sources.redhat.com>
List-Help: <mailto:cygwin-help@sources.redhat.com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner@sources.redhat.com
Delivered-To: mailing list cygwin@sources.redhat.com
X-Envelope-Sender-Is: Andrej.Borsenkow@mow.siemens.ru (at relayer david.siemens.de)
From: "Andrej Borsenkow" <Andrej.Borsenkow@mow.siemens.ru>
To: "Christopher Dale Campbell" <DaleCampbell@revolutionist.com>,
        "Cygwin" <cygwin@cygwin.com>
Subject: RE: Small alternative to su
Date: Fri, 6 Jul 2001 13:59:19 +0400
Message-ID: <004e01c10602$530d8220$21c9ca95@mow.siemens.ru>
MIME-Version: 1.0
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: 7bit
X-Priority: 3 (Normal)
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2911.0)
In-Reply-To: <003b01c105fd$b55d7430$d5322041@campbell>
Importance: Normal
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2479.0006



> -----Original Message-----
> From: cygwin-owner@sources.redhat.com
> [mailto:cygwin-owner@sources.redhat.com]On Behalf Of Christopher
> Dale Campbell
> Sent: Friday, July 06, 2001 1:26 PM
> To: Cygwin
> Subject: Small alternative to su
>
>
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> If you need to run programs (in cygwin) under a different user, but don't
> want to log out, here's a simple thing that I use.  Create a shortcut to
> "%SystemRoot%\system32\cmd.exe".  Then right click on the shortcut, select
> Properties, and check the box 'Run as different user.'  Now when you click
> that shortcut a dialog will pop up asking which user you'd like to run it
> as.  When the DOS CLI opens up, just \cygwin\cygwin.bat (or where ever you
> have it located) to run the cygwin batch file.  This works on most other
> shortcuts, too.  However, the 'Run as different user' box is greyed out on
> the cygwin shortcut.  Probably because it's a shortcut to a batch
> file (?).
> Hope this helps.  Sure does beat logging in and out all the time.
>
> And obviously, this is refering to NT and 2000 boxes (I'm using 2000).
>

this works on 2000 and above *only*. "Run as" does not exist on NT.

-andrej


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

