Photo Gallery Member List Search Calendars FAQ Ticket List Log Out


Permissions error

 
Logged in as: Guest
arrSession:exec spGetSession 2,3,3217
 Active Users: There are 0 members and 0 guests.
 Users viewing this topic: none
 

 

 
  
  Printable Version
All Forums >> [Scripting] >> ASP >> Permissions error
  Do you like VisualBasicScript.com? Link to us and help spread the word about our forum. Thanks!
Page: [1]
Login
Message << Older Topic   Newer Topic >>
 Permissions error - 6/3/2005 7:34:31 AM   
  giantlunarmoth

 

Posts: 47
Score: 0
Joined: 3/9/2005
From:
Status: offline
I'm trying to test the running of a server side batch file from an asp page.

Page code:


      (pingtest.bat is simply "ping google.com > pingtest.log")

I get this error:

Microsoft VBScript runtime error '800a0046'

Permission denied

/pingtest.asp, line 8

Line 8 being the "Shell.Run" bit, I figured the IUSR account didn't have the proper permissions...so I gave it full control, and still get the same error.

The IIS Admin service is set to interact with the desktop.

I'm running IIS6 on Win2K3...any help is appreciated.

Thanks...GLM
 
 
Post #: 1
 
 Re: Permissions error - 6/4/2005 11:46:44 AM   
  giantlunarmoth

 

Posts: 47
Score: 0
Joined: 3/9/2005
From:
Status: offline
So I gave IUSR full NTFS permissions to EVERYTHING in C:\, and no longer get the permission denied error (duh), but the batch file just won't run [:P] ...this seems pretty straightforward stuff. Anyone know the secret?

(in reply to giantlunarmoth)
 
 
Post #: 2
 
 Re: Permissions error - 6/4/2005 9:00:07 PM   
  VBS

 

Posts: 110
Score: 0
Joined: 3/2/2005
From: Lebanon
Status: offline
Dear giantlunarmoth,
Try removing the > pingtest.log from the bat file
so it will look like that:
(pingtest.bat is simply "ping google.com")
then test the script, it worked then it means the permissions arn't set corectly, but if didn't try doing the following:
1. Try typing any other command than ping (a simpler)
2. Try running the script on windows 2000, cause the problem might with the security in Win 2K3 as u know WIN2K3 has a very high security, and don't try it on win xp with sp2 cause it will give the same problem.

Hope this helps

Good luck

Best Regards
Firas S Assaad

(in reply to giantlunarmoth)
 
 
Post #: 3
 
 
 
  

If you found our site useful please link to us <a href="http://www.visualbasicscript.com">VisualBasicScript.com</a>.
All Forums >> [Scripting] >> ASP >> Permissions error Page: [1]
Jump to:





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts