| delorie.com/archives/browse.cgi | search |
| 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 |
| From: | "jon ewing" <jon AT mediasurface DOT com> |
| To: | <cygwin AT cygwin DOT com> |
| Subject: | sudo and runas |
| Date: | Mon, 3 Mar 2003 20:25:53 -0000 |
| Message-ID: | <000101c2e1c3$19ad5f20$152ca8c0@int.mediasurface.com> |
| MIME-Version: | 1.0 |
| X-Priority: | 3 (Normal) |
| X-MSMail-Priority: | Normal |
| Importance: | Normal |
| X-MimeOLE: | Produced By Microsoft MimeOLE V6.00.2800.1106 |
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/
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |