scramer
By:
scramer

SFTP access for wordpress uploads

November 19, 2014 1.2k views

Trying to upload theme and media files with filezilla through SFTP. I can't login with www-data. It doesn't accept the password. When I try to login with the www-data username in the console, it closes the connection immediately.

1 comment
  • You probably should use your regular user, and just add that user to www-data group.

    From a command-line:

    sudo usermod -a -G www-data $USER
    

    then check it worked by running:

    id $USER
    

    you should see a list of all groups that user belongs to, www-data should be listed

1 Answer

This question was answered by @sierracircle:

You probably should use your regular user, and just add that user to www-data group.

From a command-line:

sudo usermod -a -G www-data $USER

then check it worked by running:

id $USER

you should see a list of all groups that user belongs to, www-data should be listed

View the original comment

Have another answer? Share your knowledge.