FTP user and custom umask ?

4 posts / 0 new
Last post
#1 Mon, 12/26/2011 - 15:19
mystikzen

FTP user and custom umask ?

Hello, in the folder tree of a website, I have a special folder where users can upload some files. These files are managed by apache after that. I would like to modify the umask of this user so that by default the permissions are in 666 This user has no shell access, so no .bashrc How can I do this ?

Thanks.

Mon, 12/26/2011 - 15:59
mystikzen

Temp fix:

chgrp www-data folder

chmod 775 folder

/etc/proftpd/proftpd.conf:

Umask 002 022

But this will be for all users :/

Tue, 09/24/2013 - 04:42
fuerst

Use the <directory> directive to customize the umask for particular directories only:

<Directory /path/to/dir>
    Umask 022
</Directory>
Tue, 09/24/2013 - 05:41
Locutus

Good lords, this thread is nearly two years old! :)

Topic locked