: Apache 403 error despite group permission I have a NAS running Linux with a Apache 2.2. I want the apache process (running as user nobody) to run as different group "users" to read some files.
I have a NAS running Linux with a Apache 2.2. I want the apache process (running as user nobody) to run as different group "users" to read some files. I tried the following without success:
in its httpd.conf change to "Group users"
run "addgroup nobody users"
But the apache still shows a 403 permission error for a file like this
-rw-rw-rw- 1 foo users 2654256 Jul 21 12:57 test3.png
Do you have any solution for that?
More posts by @Kristi941
1 Comments
Sorted by latest first Latest Oldest Best
Apache2 Environment Variables
It would be useful to know what Linux version and release distro the NAS is running due to the fact that Apache2 can be setup in various ways depending on what version of linux your using.
Sometimes you need to edit etc/apache2/envvars
gedit /etc/apache2/envvars
Change:
export APACHE_RUN_USER=www-data
export APACHE_RUN_GROUP=www-data
to:
#export APACHE_RUN_USER=www-data
export APACHE_RUN_USER=nobody #export APACHE_RUN_GROUP=www-data
export APACHE_RUN_GROUP=nobody
Directory Ownership
Additionally you will then be required to update the ownership of www folder which can normally in /var/www but again can vary from Linux to another.
Once you have located the folder you will need to do a chown on it to make nobody the owner of the folder. You can do this by running: chown nobody:nobody -R /var/www
Terms of Use Create Support ticket Your support tickets Stock Market News! © vmapp.org2024 All Rights reserved.