itti
25th August 2008, 09:02
Hi,
I've installed a proftpd FTP server with MySQL support on my Cntos 5 box (starting from the clear howto by Falko (http://www.howtoforge.com/proftpd_mysql_virtual_hosting)). 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
I've installed a proftpd FTP server with MySQL support on my Cntos 5 box (starting from the clear howto by Falko (http://www.howtoforge.com/proftpd_mysql_virtual_hosting)). 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