-   Linux - Newbie (
-   -   Apache & PureFTPD Permissions and groups! (

DHR 09-04-2004 12:19 PM

Apache & PureFTPD Permissions and groups!
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 :newbie:

comp12345 09-04-2004 02:00 PM

Use the -U switch to change the umask setting for newly created files. Check the documentation file for more info.

DHR 09-05-2004 10:20 AM

Thanks very much for your help, i would have never found that otherwise :)

All times are GMT -5. The time now is 10:56 AM.