Welcome to the Hindi Tutor QA. Create an account or login for asking a question and writing an answer.
Sima in Web Hosting
edited

Using SFTP(FileZilla) with new user gets permission denied error. I connected to my server using SFTP with filezilla and I’m trying to edit a root-protected HTML file. I’m getting open for write: permission denied errors as expected since it’s a root protected file. Is there a way to “sudo” with filezilla?

2 Answers

0 votes
Pooja
edited

HTML Folder Read Write Permission in UBUNTU

My solution with apache2 at ubuntu 20.04

Add username to www-data group, your server login username. eg. ubuntu, ec2user etc. for this run command:

sudo adduser username www-data

I give chmod 775 to www folder

sudo chmod -R 775 /var/www/html

thats it;

0 votes
Pooja
edited

Other ways to change the folder permission:

sudo chown -R ubuntu /var/www/html
sudo chmod -R 755 /var/www/html
...