Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I want to create a folder that is accessable via FTP on an Ubuntu Box. There are four users that are allowed to connect via FTP and I want them to be able to share files without restrictions. Is it possible to change every file to chmod 777 at the time of its creation? Thing is, that should only be possible at this specific location.


share|improve this question
which ftp daemon are you using ? – Iain Jan 15 '11 at 19:07
I'm using proftpd. I could switch to vsftpd easily, if necessary. – Grokla Jan 15 '11 at 19:14
up vote 5 down vote accepted

With proFTPD the answer is that you can't set permissions to 777 it specifically does not allow files to be uploaded 777. You probably don't want the files to be executable anyway and 666 gives all the access required for an FTP server.

If you set the Umask directive in your proftpd.conf to 000 000 then all files will be created as rw-rw-rwand directories rwxrwxrwx

share|improve this answer

The permissions bits on files created on *nix systems is controlled by the umask. Basically umask is a filter that tells it what not to set. If you want 777 you need a umask of 000 which will not filter anything.

Since you are using proftpd, there is a howto that specifically talks about setting the umask.

share|improve this answer

Your Answer


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.