I have a folder /home/zain/uploads/hash/
In uploads
one of my service which is running with forever-service is creating hash
folder and put file inside it ..
problem is, it is creating hash folder and file inside it as root
user and 700 access since it is running with forever-service ..
But when I tried to access through my nginx so it give me 403 forbidden
..
my nginx user is opc
..
If I change owner or group manually then I can access to that file.. so I don't want to change permissions manually every time.
How can I solve the problem?
opc
... or update it, to change the output files to be owned byopc
– Yaron Aug 07 '18 at 10:33forever-service must be run as root
it give me this error when i tried to run with opc – Zain Abbas Aug 07 '18 at 10:37forever-service
to executechown opc -R /home/zain/uploads/hash
and/orchmod 755 -R /home/zain/uploads/hash
as its last steps? – Yaron Aug 07 '18 at 10:42