简体   繁体   中英

Cannot delete files on AWS EC2 via FTP, permission denied

I run a WordPress site on AWS EC2 with Litespeed.

When I log in via FTP I cannot delete anything, neither plugin nor theme files. FileZilla shows a rm /path/to/file permission denied error:

FTP rm 权限被拒绝截图

These are due to permissions issue, as you are trying to delete the files while loggged in from user that is not the owner of those files.That www-data is server user, ask your server provider to remove those files or change the owner of files.

For this issue, you need to change the owner of the files. This command will work for you

sudo chown -R www-data:www-data /var/www/html

Run this command from your ssh and try again.

Regards

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM