403 Access Denied After Setting Owner via Shell
A word of caution here. The above command can allow a user to take control of files on the same file system. See this article for more details:
for i in `ls /var/cpanel/users/`; do chown -R $i:$i /home/$i/public_html ; done Hi I had some problems with file permissions I have just implemented this command line but unfortunately the store stopped working and now shows an error message 403 Access Denied How can I fix the problem quickly? Thanks in advance
-
It seems to me that the problem has been solved by following the steps in this post Thanks 0 -
Hello @Adamfynd, I'm glad to see you were able to solve the issue. You may also find information about the FileProtect feature useful when it comes to understanding the ownership values to use on the public_html directory: The EasyApache 4 FileProtect Option - EasyApache 4 - cPanel Documentation Thank you. 0
Please sign in to leave a comment.
Comments
2 comments