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

Whenever I upload a file to my FTP server running VSFTP, the file permissions on it are defaulted to 600 (rw-------). How can I change it to 775 (rwxr-xr-x)?

share|improve this question

1 Answer 1

up vote 2 down vote accepted

Seems like someone has modified your umask already since acording to the vsftpd man file the default is 776. Check your config for the following values and adjust accordingly.

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

local_umask

The value that the umask for file creation is set to for local users. NOTE! If you want to specify octal values, remember the "0" prefix otherwise the value will be treated as a base 10 integer!

Default: 077

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.