House of Fusion
Search over 2,500 ColdFusion resources here
  
Home of the ColdFusion Community

Mailing Lists
Home /  Groups /  ColdFusion Talk (CF-Talk)

cfexecute and dr web or avg - permissions problem

  << Previous Post |  RSS |  Sort Oldest First |  Sort Latest First |  Subscribe to this Group Next >> 
Top  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
Will Swain
03/04/2008 05:15 PM

Hey all, I want to scan a file for viruses on upload. I have dr web installed already, as part of Plesk, and AVG is an easy (free) option too. So, I have the following code to try and run dr web to scan a file. The pathways are all correct, and the /ST argument is to run in stealth mode: <cfexecute name="#path_to_folder#\drweb32w.exe" arguments="/@#file_to_scan# /ST" variable="results" timeout="10" /> But the page just times out. Checking the dr web logs, I see this message: Error (80004015): The class is configured to run as a security id different from the caller So I'm guessing this is a user permissions issue. I can't see an option to run the command line scanner under a specific account in the dr web docs. Anyone had any experience of this and can offer a solution or a point in the right direction. I'd look at other av options too. Cheers Will

Top  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
Dave Watts
03/04/2008 05:18 PM

> So I'm guessing this is a user permissions issue. I can't see > an option to run the command line scanner under a specific > account in the dr web docs. Use the "runas" command to run a program as a specific user. Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com/ Fig Leaf Training: Adobe/Google/Paperthin Certified Partners http://training.figleaf.com/ WebManiacs 2008: the ultimate conference for CF/Flex/AIR developers! http://www.webmaniacsconference.com/

Top  |   Parent  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
Will Swain
03/04/2008 05:40 PM

Thanks for the reply Dave. I've not played with runas before, and I'm uncertain as to how to pass the arguments to drweb32w.exe using runas. Any pointers? Thanks Will > So I'm guessing this is a user permissions issue. I can't see an > option to run the command line scanner under a specific account in the > dr web docs. Use the "runas" command to run a program as a specific user. Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com/ Fig Leaf Training: Adobe/Google/Paperthin Certified Partners http://training.figleaf.com/ WebManiacs 2008: the ultimate conference for CF/Flex/AIR developers! http://www.webmaniacsconference.com/

Top  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
Dave Watts
03/04/2008 10:42 PM

> Thanks for the reply Dave. I've not played with runas before, > and I'm uncertain as to how to pass the arguments to > drweb32w.exe using runas. Any pointers? I think I'd write a batch file to run all this. You'd use CFEXECUTE to invoke CMD.EXE, and pass it everything else as an argument. Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com/ Fig Leaf Training: Adobe/Google/Paperthin Certified Partners http://training.figleaf.com/ WebManiacs 2008: the ultimate conference for CF/Flex/AIR developers! http://www.webmaniacsconference.com/

Top  |   Parent  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
Will Swain
03/05/2008 05:54 AM

OK, thanks Dave.   Presumably the other option is to give CF the correct permissions to run dr web? Will > Thanks for the reply Dave. I've not played with runas before, and I'm > uncertain as to how to pass the arguments to drweb32w.exe using runas. > Any pointers? I think I'd write a batch file to run all this. You'd use CFEXECUTE to invoke CMD.EXE, and pass it everything else as an argument. Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com/ Fig Leaf Training: Adobe/Google/Paperthin Certified Partners http://training.figleaf.com/ WebManiacs 2008: the ultimate conference for CF/Flex/AIR developers! http://www.webmaniacsconference.com/

Top  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
Dave Watts
03/05/2008 07:13 AM

> Presumably the other option is to give CF the correct > permissions to run dr web? Yes, that should also work. Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com/ Fig Leaf Training: Adobe/Google/Paperthin Certified Partners http://training.figleaf.com/ WebManiacs 2008: the ultimate conference for CF/Flex/AIR developers! http://www.webmaniacsconference.com/


<< Previous Thread Today's Threads Next Thread >>

Search cf-talk

May 24, 2012

<<   <   Today   >   >>
Su Mo Tu We Th Fr Sa
     1 2 3 4 5
6 7 8 9 10 11 12
13 14 15 16 17 18 19
20 21 22 23 24 25 26
27 28 29 30 31     

Designer, Developer and mobile workflow conference