Permission denied: in nginx

HI
I am working on nginx, i am developed an small module to read data from
an external device. when i call module from the browser i am getting an
error “Error connecting XXXXX : permission denied”

i tried to change the permission and owner of the file (chown and
chmod)but still i got same error. can anyone plz help how to move on
further

Regards
pavan

Posted at Nginx Forum:

HI

sorry, i am not getting how to solve the problem.

the worker process of nginx is running in “nobody root” and external
device is in “root dialout” The add on module is in “user user”.
I tried to change the permission of the add on module to nobody root and
root root, both are given same error.
“ERROR CONNECTING READER : PERMISSION DENIED”

in my system su is not enabling. is it possible when we run the complete
application on su ?
is there any other way to solve the above error . can u plz help. (plz
elaborate the solution)

( plz forgive if there are any grammatical mistakes)

Posted at Nginx Forum:

Thanks , i got solution.

Posted at Nginx Forum:

maybe it might help to do strace on the nginx process to see the exact
system call which causes the permission denied. also you have to make
sure that the user under which nginx runs is allowed to access the
device file. for example you could test this by doing sudo -u
nginxuser cat /dev/xxx

On Mon, Jun 27, 2011 at 20:19, [email protected]