3

How can I prevent local users from uploading files in vsftpd? I know I can prevent them from downloading files by setting the string download_enable in vsftpd.conf on "NO", is there an option for uploading files too?

2

It's disabled by default. In fact, getting vsftpd to allow upload is rather tricky.

For example: Allow anonymous upload for Vsftpd?

To disable it you could do any of the following:

  • anon_upload_enable=NO
  • write_enable=NO
  • Permissions on "incoming" set to disallow writes
0

Find "write_enable=" in vsftpd.conf

Set it to "NO", so it should look like this: write_enable=NO

Now restart vsftpd using this command: service vsftpd restart

  • I'm not sure what this adds to Steve's earlier answer. – MadHatter Feb 1 '16 at 12:07
  • Haven't seen his answer. My answer adds "service vsftpd restart". – user333044 Feb 1 '16 at 13:12
  • I think that's rather my point: you should read the extant answers to a question before adding one. – MadHatter Feb 1 '16 at 13:53

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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