I'm having an Ubuntu Server installation. In a folder deployed a wordpress installation and because of the file uploads, plugin updates etc I chowned the entire folder and its subdirectories to www-data:www-data (apache). I have a username, lets say hambos22. I added my username to www-data group, and now when i'm trying to SFTP to that folder through Transmit I can't change or modify files. It says that I don't have the right permissions to do it. I disabled the root login for security reasons as meny articles recommended.
My question is: Can I login with "sudo" through Transmit? Or maybe another workaround? I tried various methods like chowned user->hambos22 group->www-data, which works only for SFTP, but no for the wordpress automatic updates and file uploads