Re: Command line util to change anon username

From: Shiva (sivamoorty_at_hotmail.com)
Date: 06/02/03


Date: Mon, 2 Jun 2003 07:03:55 -0700


The other problem I am having is that after I run the
commands, the authentication dialog comes up.

What should I do to prevent this?

Thanks a lot.

Shiva
>-----Original Message-----
>After you change the name, try stop and start IIS
services.
>
>--
>Regards,
>Bernard Cheah
>http://support.microsoft.com/
>
>
>"Shiva" <sivamoorty@hotmail.com> wrote in message
>news:4c4601c325b7$e9d09630$a501280a@phx.gbl...
>> Thanks a lot for your responses. I was not successful
and
>> so will explain in more detail.
>>
>> OS: W2K
>> IIS: 5.0
>>
>> Scripts in our pages accesses a Access database file on
>> the machine. The Folder security restricts access to
only
>> the Machine Administrator. By default, IUSR_SYS* is not
a
>> part of the Machine Administrators and hence the script
>> fails.
>>
>> My intension it to change the IUSR_* user to the Machine
>> Administrator via a command line tool.
>>
>> The ideal case would be to do this from a central
machine
>> on all the machines. The next alternative is to run the
>> tool on the individual machines.
>>
>> What I did:
>>
>> 1. Try running the script - fails with ODBC error
(access
>> rights on the folder does not permit the running of the
>> script)
>>
>> 2. Invoke cscript.exe:
>>
>> cscript.exe c:\inetpub\AdminScripts\adsutil.vbs set
>> w3svc/anonymoususername "<Machine_Name>\Administrator"
>>
>> cscript.exe c:\inetpub\AdminScripts\adsutil.vbs set
>> w3svc/anonymoususerpass "password"
>>
>> 3. Try running the script - same error
>>
>> 4. If I change the user in the ISM GUI to Machine
>> administrator and try again it goes through
>>
>> Please let me know if what I am doing is correct and
what
>> I should do.
>>
>> Thanks.
>> Shiva
>>
>> >-----Original Message-----
>> >Yes. adsutil.vbs is in the \inetpub\adminscript
>> >for w2k. NT 4.0 is somewhere in %windir%\system32
\inetsrv\
>> >
>> >--
>> >Regards,
>> >Bernard Cheah
>> >http://support.microsoft.com/
>> >
>> >
>> >"Karl Levinson [x y] mvp" <levinson_k@despammed.com>
>> wrote in message
>> >news:uzoQlpWJDHA.700@TK2MSFTNGP10.phx.gbl...
>> >> cscript.exe comes with Windows and adsutil.vbs comes
>> with IIS [though it
>> >may
>> >> have been deleted if any hardening was done on your
>> system that included
>> >> deleting files].
>> >>
>> >>
>> >> "Shiva" <sivamoorty@hotmail.com> wrote in message
>> >> news:3ff201c3251b$005793b0$a501280a@phx.gbl...
>> >> > Thanks. Where do I get them?
>> >> >
>> >> > The purpose: Set the username/priv from a central
>> machine
>> >> > on many machines after installation.
>> >> >
>> >> > >-----Original Message-----
>> >> > >This tell you the current anonymous user
>> >> > >cscript.exe adsutil.vbs get
w3svc/anonymoususername
>> >> > >
>> >> > >replace get to SET to configure user
>> >> > >then set the password
>> >> > >cscript.exe adsutil.vbs set
>> >> > w3svc/anonymoususerpass "password"
>> >> > >
>> >> > >why you want to do this ?? admin privileges via
>> web ??
>> >> > >--
>> >> > >Regards,
>> >> > >Bernard Cheah
>> >> > >http://support.microsoft.com/
>> >> > >
>> >> > >
>> >> > >"Shiva" <sivamoorty@hotmail.com> wrote in message
>> >> > >news:3e8d01c324f1$ee6635e0$a401280a@phx.gbl...
>> >> > >> My basic intention is to manage the accounts
from
>> >> > command
>> >> > >> line.
>> >> > >> The minimum I would like to do is to change
IUSR_
>> to
>> >> > >> Machine Administrator.
>> >> > >>
>> >> > >> Operating env: W2K, IIS5.0
>> >> > >> Thanks.
>> >> > >> Shiva
>> >> > >> >-----Original Message-----
>> >> > >> >Do you want to change *which* account is used
as
>> the
>> >> > >> anonymous user account
>> >> > >> >-or-
>> >> > >> >Do you want to change the *name* of the current
>> >> > anonymous
>> >> > >> user account in
>> >> > >> >the NT user database?
>> >> > >> >
>> >> > >> >It is unclear which of the above you wish to
>> >> > accomplish.
>> >> > >> >
>> >> > >> >Cheers
>> >> > >> >Ken
>> >> > >> >
>> >> > >> >--
>> >> > >>
>~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>> >> > >> >"Shiva" <sivamoorty@hotmail.com> wrote in
message
>> >> > >> >news:3dfa01c324e7$f679ab40$a401280a@phx.gbl...
>> >> > >> >: I am looking for a command line utility to
>> change the
>> >> > >> >: username in the anonymous user account.
>> >> > >> >:
>> >> > >> >: Thanks in advance.
>> >> > >>
>~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>> >> > >> >
>> >> > >> >
>> >> > >> >.
>> >> > >> >
>> >> > >
>> >> > >
>> >> > >.
>> >> > >
>> >>
>> >>
>> >
>> >
>> >.
>> >
>
>
>.
>



Relevant Pages

  • =?ISO-8859-1?Q?New_System_Command_Script_Facility?=
    ... I'm currently finished writing a new replacement command script processor ... (at least that RACF thinks so, and better support for non-RACF sites). ... The IF-type commands now have ELSE processing ... non-scroll highlighted console message and BEEP until a specific JOB or TASK ...
    (bit.listserv.ibm-main)
  • Re: printuientry
    ... you could put it into a logon script. ... The error did not occur as a network administrator. ... I've tried several variations on the command syntax and can not get it ... >> printer is already defined on a "local port", ...
    (microsoft.public.win2000.printing)
  • Re: Domain Users to have Local Admin rights
    ... make sure that your script works. ... this computer as local administrator and insert USB drive. ... startup script (e.g. OU policy or Default Domain Group Policy). ... Now close this windows and click on ...
    (microsoft.public.windows.server.security)
  • Re: Command Line Interface
    ... >> should accept system commands only for an administrator. ... >> how should I supress the bash shell and launch my custom CLI ... > The script could run in a restricted shell and offer a menu of ... account, and either 1) change account password, 2) ...
    (comp.os.linux.misc)
  • Net::Telnet and SMTP
    ... I'm trying to send a sequence of commands and then log both the ... I've included the script and a sample text file (that feeds the scripts ... sub processfile { ... #Try a short delay between sending command and reading output ...
    (comp.lang.perl.misc)

Quantcast