How to set folder user:group on archlinux makes node could create file
Problem
on archlinux, we have a Folder called /srv
which belongs to http:users
. In my nodejs code I want to create new file /srv/my_test/1.log
but result is Permission Denied.
After I changed /srv/my_test
from http:users
to my_username:users
, it worked.
So what's the right way of setting folder permission when my nodejs code need create file on the server?
Problem courtesy of: C.C.
Solution
When you make /srv
chowned by http:users
, check folder permissions are 775 and be sure your user is a member of the users group.
This way:
$ chown http:users /srv
$ chmod 775 /srv
Solution courtesy of: Andrea Scarpino
Discussion
View additional discussion.