Hello,
To expand on what forum17 has mentioned, you could run the following in root SSH to see the ownership and file permissions for the PEAR folder:
Code:
ls -ld /home/user/public_html/PEAR
Please replace user with the cPanel username. If the directory is not owned by the right user (so possibly root or nobody owns the file) or has 000 file permissions, this could well be why it isn't letting you remove it.
Next, for the lsattr command, again put the full path for public_html to see the permissions on it:
Code:
lsattr /home/user/public_html
Then check what the PEAR folder shows for that command. You might also want to drill into the folder to run lsattr on it, since anything with immutable attributes will prevent the folder from being deleted (here immutable will be an i showing up when running lsattr). You can unset the immutable bit on a file or folder by running:
Code:
chattr -i /home/user/public_html/PEAR
If there are files within the directory that are immutable, you can do this recursively:
Code:
chattr -i -R /home/user/public_html/PEAR
Thanks.