Change Apache owner on Synology

Tags: apache owner telnet

I am doing some web development on my Synology server and I found out that files created by Apache have the owner nobody from the group nobody. This causes the issue that files uploaded by apache ownership are locked from editing through guest or other accounts.

To solve this I could do the following when I need to edit files locally:

However I hate doing this kind of thing because it seems counter productive. Instead I have changed the Apache configuration files making its default user guest:users. The configuration files reside in the following folder: usr/syno/apache/conf.  You can reach it by logging in through telnet as root.

Afterwards you are able to edit the configuration file httpd.conf-sys with the following command:

apache-change-user-sysFind the text listed in the picture to the left (user and group already changed). Then type /a to get into the edit mode of the editor and adjust the user and group. To save the adjustments type :w and the changed will be saved.

When done editing dont forget to chown -R guest:users * your web folder and reboot the Synology.

Leave a Reply

*