Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

I'd like to have vsftpd convert all uploaded filenames matching /home/$USER/public_html/* to lowercase, and set the permissions to 644 upon upload. Is this possible and how can I do this?

share|improve this question

1 Answer 1

up vote 1 down vote accepted

Vsftpd can't lowercase filenames, you may be able to get proftpd to do it though. There is a configuration directive

file_open_mode - The permissions with which uploaded files are created. Umasks are applied on top of this value. You may wish to change to 0777 if you want uploaded files to be executable.

Default: 0666

You can probably adjust it to meet your requirements.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.