1

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.

Thanks!

Grokla
  • 13
  • 1
  • 3

2 Answers2

5

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

user9517
  • 115,471
  • 20
  • 215
  • 297
1

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.

Zoredache
  • 130,897
  • 41
  • 276
  • 420