This is the mail archive of the
mailing list for the Cygwin project.
RE: sudo and runas
- From: "Chris January" <chris at atomice dot net>
- To: "jon ewing" <jon at mediasurface dot com>,<cygwin at cygwin dot com>
- Date: Wed, 5 Mar 2003 23:33:39 -0000
- Subject: RE: sudo and runas
> 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
> 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
> 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?
Is this any use?
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html