Web Directory Permissions Issue.
-
Following the Serve Multiple Sites & Blogs with Virtual Hosts tutorial, I added a new site.
As the Add Users, Groups & Permissions lines of code are already included in the TopCat script which I used, I didn't specifically run them for this site.
Using the Terminal I determined the owner of the site was root and not my username.
I ran the chmod and chown code to correct this problem.
Shouldn't this line of code from the TopCat script have set the permissions correctly for this new site?
find /home/USERNAME/public_html -type d -exec chmod g+s {} \;Posted 1 year ago # -
aye .. it shouold have Barnaby .. what permissions and ownership did you have on creating the new folder/files?
.. maybe I need to tweak the stack?
Posted 1 year ago # -
When I ran TopCat, the permissions were correct for the site I created, myusername & webmaster. Same for when I ran the WP script.
Not sure what I did wrong but when running the above mentioned tut, the permissions were root and webmaster.
Posted 1 year ago # -
well, for best security you should have:-
YOU:webmasters
changing $USER for you, you can ensure ownership with:-
#
sudo -ichown -R $USER:webmasters /home/$USER/public_html && chmod -R g+w /home/$USER/public_html
find /home/$USER/public_html -type d -exec chmod g+s {} \;
exit
#Posted 1 year ago #
Reply
You must log in to post.
Want HTML?
a blockquote code em strong ul ol liPlace code between backticks `codeHere`
You've got it.
