FTP Upload - Possible to upload to /var/www...

So Apache2 uses u/g www-data:www-data. I want to set it up so people can upload to that directory, but I want it to go to those permissions when they upload, so it can still be modifiable by the webserver.

Is this possible?

4 Replies

Yes, read the manuals/documentation for your FTP server of choice.

I read through all of vsftpd and I couldn't find anything… Unless I am just totally missing something

Take a look at the chown_uploads config option.

@pclissold:

Take a look at the chown_uploads config option.

I feel like an idiot, you just made my day.

Reply

Please enter an answer
Tips:

You can mention users to notify them: @username

You can use Markdown to format your question. For more examples see the Markdown Cheatsheet.

> I’m a blockquote.

I’m a blockquote.

[I'm a link] (https://www.google.com)

I'm a link

**I am bold** I am bold

*I am italicized* I am italicized

Community Code of Conduct