Unable to upload files for static website

I’ve worked out how to use sudo mkdir to create folders for static websites for subdomains but I cannot upload the files. I constantly get permission denied.

I’m using Wise-FTP 10 using an SFTP connection. The username and password are the admin ones used for SSH to set up the box in the first place.

Any ideas?

That admin user might not have write permissions to the directory you created with sudo. You can change the ownership with the chown command. It’s probably also a good idea to change the group ownership to user-data, and make sure the group permissions are set correctly.

This topic was automatically closed 40 days after the last reply. New replies are no longer allowed.