You are not logged in.
I installed the Apache HTTP server as stated on the LAMP page of the Arch Wiki. The Wiki says that the installation creates a http user and group automatically.
When I ls -l in /srv, it shows that the permissions of the http folder are drwxrwxr-x root root.
I changed the groups so that the owner of the folder is still root but it belongs to the http group.
I also added my user to the http group.
I systemctl restart httpd'ed and closed my terminal/logged back in. However, I still can not write inside the /srv/http folder.
I need to be able to write to it without using sudo, but it doesn't seem safe to allow everything to write to it.
Is it safe to change the group of /srv/http back to root and for my user to join the root group, and will that allow me to write to it?
Or should I chmod it so that the folder belongs to me? Or something else?
EDIT: Just joining the http group did actually work.
I originally just logged out of the terminal I used to switch groups and opened up a new terminal.
After posting this, I killed the X server, logged out of TTY1, logged into TTY1 as root, systemctl restart httpd'ed, logged root out of TTY1, logged my user back in, and started X again. I can write to /srv/http now.
Last edited by subraizada3 (2013-11-12 20:44:53)
Offline