Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT sources DOT redhat DOT com Delivered-To: mailing list cygwin AT sources DOT redhat DOT com Message-ID: <003b01c105fd$b55d7430$d5322041@campbell> From: "Christopher Dale Campbell" To: "Cygwin" Subject: Small alternative to su Date: Fri, 6 Jul 2001 05:26:16 -0400 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2462.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2462.0000 -----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). Christopher Dale Campbell DaleCampbell(at)revolutionist(dot)com /******************************* For PGP & GPG Keys, finger campbell(at)cyberspace(dot)org *******************************/ -----BEGIN PGP SIGNATURE----- Version: PGPfreeware 7.0.3 for non-commercial use iQA/AwUBO0WENoXnWfGgRqP+EQKo1ACg7uAmCKAZuL9sFy0er4PlvlqzdS8An3r4 /MSGRM00qFGm0FbW/90v+ozG =yew4 -----END PGP SIGNATURE----- -- 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/