From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 22480 invoked by alias); 18 Sep 2003 14:25:38 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 22466 invoked from network); 18 Sep 2003 14:25:37 -0000 Received: from unknown (HELO foundation.speeq.com) (213.41.71.26) by sources.redhat.com with SMTP; 18 Sep 2003 14:25:37 -0000 Received: from speeq.com [193.251.54.29] by foundation.speeq.com with ESMTP (SMTPD32-6.06) id AE962A60302; Thu, 18 Sep 2003 16:17:58 +0200 Message-ID: <3F69C052.6020408@speeq.com> Date: Thu, 18 Sep 2003 14:26:00 -0000 From: Olivier ALLART User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.3.1) Gecko/20030425 X-Accept-Language: en-us, en MIME-Version: 1.0 To: "Hannu E K Nevalainen (garbage mail)" , cygwin@cygwin.com Subject: Re: SSHD, Cygwin and Windows 2003 : continued with user rights References: In-Reply-To: Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-SW-Source: 2003-09/txt/msg01210.txt.bz2 Thanks for the tip. I decided to get rid of this stupid iisreset and use instead a command like net start/stop msftpsc/w3svc works fine whith whatever administrator Olivier Hannu E K Nevalainen (garbage mail) wrote: >>From: Olivier ALLART >> >> > > > >>Next I guess I'll go look for some tip on how to unlock iisreset so it >>can be used by whatever admin and not just local .. >> >> > > Sorry to jump in! Just an idea; >How about runas, is it available in W2K+3? (I'm on W2K) > >/Hannu E K Nevalainen, B.Sc. EE - 59?16.37'N, 17?12.60'E >-- UTC+01 -- > > >$ echo >iisreset.bat -e \ > "@echo off\necho This is me, using the Administrators rights\!" >$ u2d iisreset.bat >iisreset.bat: done. >$ runas /profile /user:mymachine\administrator cmd /c iisreset.bat > > *I* can't make it work for a simple test like above :-7 (from the >BASH prompt! I have a similar thing running via BAT scripts). >runas seems to "think" it doesn't get correct arguments. > >*IS* it possible? I deem it should be. > >F:\>runas /? >RUNAS USAGE: > >RUNAS [/profile] [/env] [/netonly] /user: program > > /profile if the user's profile needs to be loaded > /env to use current environment instead of user's. > /netonly use if the credentials specified are for remote access >only. > /user should be in form USER@DOMAIN or DOMAIN\USER > program command line for EXE. See below for examples > >Examples: > > >>runas /profile /user:mymachine\administrator cmd >>runas /profile /env /user:mydomain\admin "mmc %windir%\system32\dsa.msc" >>runas /env /user:user@domain.microsoft.com "notepad \"my file.txt\"" >> >> > >NOTE: Enter user's password only when prompted. >NOTE: USER@DOMAIN is not compatible with /netonly. > > >--END OF MESSAGE-- > > >-- >Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple >Problem reports: http://cygwin.com/problems.html >Documentation: http://cygwin.com/docs.html >FAQ: http://cygwin.com/faq/ > > >. > > > -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/