good Morning,

I am importing a module called python- iptables, However When I run a 
Function In this module Returns mean  error saying I must be root to 
perform this function.

already changed permission Execution and changed the owner Archive  However 
www-data STILL NOT Works

I wonder if there is a way to call imports OS Passing parameters of sudo OR 
IF There Some plug-in that similar MAKE THIS SERVICE Listing / Register IPs 
in Chains 

Error details:


...........................
S'Traceback (most recent call last):\n  File 
"/var/www/web2py/gluon/restricted.py", line 212, in restricted\n    exec 
ccode in environment\n  File 
"/var/www/web2py/applications/admanager/controllers/funcional.py", line 
1072, in <module>\n  File "/var/www/web2py/gluon/globals.py", line 194, in 
<lambda>\n    self._caller = lambda f: f()\n  File 
"/var/www/web2py/gluon/tools.py", line 3022, in f\n    return action(*a, 
**b)\n  File 
"/var/www/web2py/applications/admanager/controllers/funcional.py", line 
1026, in show_iptables\n    table = iptc.Table(iptc.Table.FILTER)\n  File 
"/usr/local/lib/python2.7/dist-packages/iptc/ip4tc.py", line 1530, in 
__new__\n    obj._init(name, autocommit)\n  File 
"/usr/local/lib/python2.7/dist-packages/iptc/ip4tc.py", line 1546, in 
_init\n    self.refresh()\n  File 
"/usr/local/lib/python2.7/dist-packages/iptc/ip4tc.py", line 1583, in 
refresh\n    self.strerror()))\nIPTCError: can\'t initialize filter: 
Permission denied (you must be root)\n'
p242

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to