I’ve read articles saying that the wordpress folder should not be owned by the web server user, ie, www-data and instead by the FTP user. However, it seems that these articles refer to shared hosting accounts where multiple users share the same server environment.
For virtual machines or dedicated servers, where no one else is using it, is it safe to use www-data at that point or should we create a user account dedicated to wordpress that files and folders are owned by?