Hi, I've installed a proftpd FTP server with MySQL support on my Cntos 5 box (starting from the clear howto by Falko). After a bit I got my server up and running. The only thing I'm not able to obtain is settimg dir and file permissions such as I want. I want a default mask 022 for all the user uploads but actually the server by default gives a 066 permission mask, with read permission for evrerybody without execution permission that causes php scripts not being processed by the web server. I put two directives (related to this) into /etc/proftpd.conf Umask 022 CreateHome on dirmode 755 The second line only to hawe also root dir created with the 022 mask. The result is that the home dir is created drwx------ (700 umask 077) and any file inside it -rw-r--r-- (644 umask 133) the parent dir of the home dir is owned by the proftftpd user (that one listed in the config file) and has 755 file permissions. Can you give me some insight ? Where can I take a look ? Thank you, Massimo
Found! Thank you Falko, I found the problem; when I was reading the manual for CreateHome option I had some misunderstanding about CreateMode: by default proftpd creates the home dir with mask 0700; the specification dirmode 755 does affect the parent directories eventually created together with the home dir. The correct directive is: CreateHome on 755 dirmode 755 Now it works! Massimo