Access Denied when using popen - Python
Posted
by RadiantHex
on Stack Overflow
See other posts from Stack Overflow
or by RadiantHex
Published on 2010-06-15T21:28:01Z
Indexed on
2010/06/16
0:52 UTC
Read the original article
Hit count: 306
Hi folks,
I'm using popen in order to send a few commands within a Django app.
Problem is that I'm getting [Error 5] Access Denied, apparently I have no access to cmd.exe, which popen seems to use.
WindowsError at /test/cmd/
[Error 5] Access is denied: 'C:\WINDOWS\system32\cmd.exe /c dir'
I reckon this is because the app sits behind a web server which has limited privileges.
Is there anything we can do about it? Help would be awesome!
© Stack Overflow or respective owner