Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Message-Id: <5.2.0.9.2.20030303124333.02b045a8@pop3.cris.com> X-Sender: rrschulz AT pop3 DOT cris DOT com Date: Mon, 03 Mar 2003 12:55:28 -0800 To: cygwin AT cygwin DOT com From: Randall R Schulz Subject: Re: sudo and runas In-Reply-To: <000101c2e1c3$19ad5f20$152ca8c0@int.mediasurface.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed Jon, How about describing the symptoms? I tried this: % runas /user:Administrator 'D:\cygwin\bin\vim.exe' Enter password for Administrator: Attempting to start "D:\cygwin\bin\vim.exe" as user "Administrator"... There was a rather long pause between the "Attempting ..." message and the Vim window opening, but it did work. So did the "notepad" example given in the help output from "runas /help". Randall Schulz At 12:25 2003-03-03, jon ewing wrote: >Hello, > >Under XP (and maybe other Windows?) there's a command, runas, which when >used from cmd.exe or the Run dialog, can run applications as another >user: > >C:\Cygwin>runas /user:Administrator C:\Cygwin\setup.exe >Enter the password for Administrator: > >allows me to run Cygwin's setup as Administrator when logged in as any >user. > >I was thinking of writing a sudo-type script using runas, but for some >reason can't get it to work at all under Cygwin - I tried running it >from Bash, cygstart-ing it, cmd.exe /C -ing it, but none of these seem >to work. > >Anyone else tried doing this? > >thanks, > >jon. -- 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/