So here’s my setup:
Opensuse 11, 64bit server.
Opensuse 11, 64bit client.
In a directory on my server I have the files for a website. The permissions were: reg:users, “reg” being me. This works fine through “svn” I can update, change, delete and so on.
However, PHP could not write to the directories. So, I changed the owner to wwwrun:www to see if that would fix it. Sure enough it predictably was able to write to files, but of course I could not.
So, I set up a new group call “web-dev” and added both myself and apache2 to the new group. I then set the permissions on all of the files and dirs. to 775 - this to mean, as far as I understood, that the owner and the group could do anything to those files.
I then changed the group on all the files and dirs. to “web-dev”.
Ok, so I would have thought that with myself and apache2 both members of “web-dev” and permissions being 775 and all files and dirs. in question having the group “web-dev” that both me and apache could now write to them.
Not so, still only the owner can write unless I change the permissions to 777 which of course is not desirable.
I have my firewall turned off (while I’m getting this all going) and apparmor also disabled. It’s fine to be that way for the short term since this server is for my LAN and is behind my business class router.
The application (Aptana/svn) that I access the files through is on the client linux computer and connects through “http” (which I find ironic) to the server.
Just as one last try, I created the “web-dev” group on my client computer, and added “reg” to the group. Now I have the group on setup on both computers and both “reg” and “web-dev” have the same ID’s on both computers as well.
I’m sure it’s just a lack of understanding my part as to why this group setup is not working, could someone please tell me what I need to do to make groups able to write to files, not just the owner.