I use the tensorflow based program luminoth for object detection. To execute luminoth while it is installed on a server i use php. When luminoth starts the prediction, it creates a file named objects.json
. In the end, it writes the result in this objects.json file. But when i execute it via php the prediction stops before writing the result. The permissions of the objects.json file are -rw-r--w--
I think it is because this permissions do not allow luminoth to write the result in this file. Do you think I am right? I tried to set permissions like
chmod 2777 /var/www/html
to test, but it does not work.
I wrote in my sudoers file:
%www-data ALL=(ALL) NOPASSWD:ALL
I hope that I am right. Do you have any ideas?
Thanks!
2
Answers
Try this (change path accordingly
First, touch the file:
Then give only the permission it really needs:
Maybe if you need, also set the correct owner:
Then execute your script:
Don’t pass chmod
777
tryhard getting something to work. Use only the permission you need.*) Image source: http://thisismao.com/wordpress/the-777-developer/