Re: Computer name in ASP

From: Ray Costanzo [MVP] (my)
Date: 12/07/04


Date: Tue, 7 Dec 2004 15:02:49 -0500

Check the NTFS permissions on %windir%\system32\ping.exe. Oddly, on my
computer (XP SP1), ping.exe has my IUSR account specifically denied. When I
run this on a W2K Server, however, all is fine.

Also check the permissions on your cmd.exe (%comspec%). Permissions are
explicitely denied on this file as well.

Ray at work

"Shahid Juma" <shahid319REMOVETHIS@hotmail.com> wrote in message
news:ebbgvbJ3EHA.2804@TK2MSFTNGP15.phx.gbl...
> Thanks,
>
> I tried it and I get an "Access Denied", are there any permissions I need
to
> set?
>
> Thanks,
> Shahid
>
> "Ray Costanzo [MVP]" <my first name at lane 34 dot commercial> wrote in
> message news:%23OC8mPJ3EHA.1264@TK2MSFTNGP12.phx.gbl...
> > Here's a poor-man's method that works well in an intranet environment.
It
> > pings the remote_addr using the -a switch which asks that ping.exe
return
> > the hostname, if it can be reverse-resolved:
> >
> > <%
> > Dim sIP
> > Dim oShell, oExec, sCommand, sOutput
> > sIP = Request.ServerVariables("REMOTE_ADDR")
> > ''watch for line wrap - begin
> > sCommand = "%comspec% /c @echo off & for /f ""tokens=2"" %q in ('ping -



Relevant Pages

  • Copy all ACLs from one folder to copy
    ... I need to delete and recreate the IUSR account on a server and the ... permissions on IUSR is highly customized on this server. ... I am thinking of using xcacls.vbs, but can't figure out to automate the ...
    (microsoft.public.windows.server.security)
  • Re: write with cURL
    ... execute permissions. ... of potential security risks from other users on the same server. ... I made this suggestion because their web host appears to run Apache ... risk to allow Apache's group write access, since all PHP scripts ran ...
    (alt.php)
  • RE: Windows 2003 Server - Everyone Group
    ... this folder only accessable by the users in the "special" group. ... Configure User and Group Access on an Intranet in Windows Server ... NTFS files system permissions control ... group that you want to set permissions for, click Check Names to verify the ...
    (microsoft.public.win2000.networking)
  • Fail DBD::Mysql 4.003 installation
    ... This test requires a running server and write permissions. ... permissions, then retry. ... Failed 9/9 tests, 0.00% okay ...
    (perl.dbi.users)
  • Re: write with cURL
    ... execute permissions. ... of potential security risks from other users on the same server. ... I made this suggestion because their web host appears to run Apache ... risk to allow Apache's group write access, since all PHP scripts ran ...
    (alt.php)