Right, I have a little problem; I'm setting up apache and obviously want pureftpd installed allowing selected users of the server to upload documents. It is all configured and installed on SUSE 9.1.
Pureftpd is set up to use the system wide username and passwords. There is an account named upload, upload belongs to the groups ftp, www and users.
/srv/ - belongs to root/root
/srv/www - belongs to root/root
/srv/www/htdocs - belongs to upload (user/owner) and the group www
I obviously want people to be able to view the documents within htdocs, only upload (the user) and people in www (the group) should be allowed to edit these files, therefore leaving all others with r-x permissions (I presume execute rights need to be provided so php scripts run for everyone?)
My problem therefore arises when I upload a file. For instance I log onto the ftp using the upload account. I can then write a file to htdocs directory. Once the transfer is completed however it is not viewable as a user through the browser the permissions are set exclusively to upload (e.g -rw-------)
Now I'm thinking the reason this is occurring is because I've gone about setting everything up in a stupid way! How can I resolve this problem or start from scratch in a more sensible way?
DHR your new resident