Re: Command line util to change anon username
From: Shiva (sivamoorty_at_hotmail.com)
Date: 06/02/03
- Next message: Andreas Klein [MSFT]: "Re: Create a virtual folder for a physical folder on another machine"
- Previous message: *Sarah*: "Integrated Authentication"
- Next in thread: Paul Lynch: "Re: Command line util to change anon username"
- Maybe reply: Paul Lynch: "Re: Command line util to change anon username"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
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.
>> >> > >>
>~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>> >> > >> >
>> >> > >> >
>> >> > >> >.
>> >> > >> >
>> >> > >
>> >> > >
>> >> > >.
>> >> > >
>> >>
>> >>
>> >
>> >
>> >.
>> >
>
>
>.
>
- Next message: Andreas Klein [MSFT]: "Re: Create a virtual folder for a physical folder on another machine"
- Previous message: *Sarah*: "Integrated Authentication"
- Next in thread: Paul Lynch: "Re: Command line util to change anon username"
- Maybe reply: Paul Lynch: "Re: Command line util to change anon username"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|