In Cpanel, when a user is created, it always creates the “public_html” directory with ownership user : and group:
nobody. However, if suexec is enabled it requires the ownership of “public_html” directory to be user : and
group: . This is not done when a account is created via WHM. It creates with the default. “public_html” : nobody
Here are two scripts which changes the permission.
Script 1
cat changeperm
echo “Enter the user:”
read user
chown $user.$user /home/$user/public_html
chmod 755 /home/$user/public_html
cat changepermall
for user in `cat /etc/trueuserdomains | cut -d : -f 2`
do
chown $user.$user /home/$user/public_html
chmod 755 /home/$user/public_html
done
The script “changeperm” when executed will prompt for the username for which the permissions will be set (single
account). The second script “changepermall” will change the permissions of all t
In Cpanel, when a user is created, it always creates the “public_html” directory with ownership user : and group: nobody. However, if suexec is enabled it requires the ownership of “public_html” directory to be user : and group: . This is not done when a account is created via WHM. It creates with the default. “public_html” : nobody
Here are two scripts which changes the permission.
Script 1
cat changeperm
echo “Enter the user:”
read user
chown $user.$user /home/$user/public_html
chmod 755 /home/$user/public_html
cat changepermall
for user in `cat /etc/trueuserdomains | cut -d : -f 2`
do
chown $user.$user /home/$user/public_html
chmod 755 /home/$user/public_html
The script “changeperm” when executed will prompt for the username for which the permissions will be set (single account). The second script “changepermall” will change the permissions of all the users.
?»??_?????^?????_?????~??V?_????? - ?Ú?????«?
??g?_g????^?????_g????~????_g???? - ?????????
7 comments:
The moment I saw this page was like wow. Thank you for putting your effort in making this post.
Useful article, acceptance for demography the time to put it together. I like the administering you are demography your blog. I’ll be bookmarking your website so I can accrue up in the future. Would like to see added posts soon.
Thank you for the auspicious writeup. It in fact was a amusement account it. Look advanced to far added agreeable from you!
Thank you for the auspicious writeup. It in fact was a amusement account it. Look advanced to far added agreeable from you!
I apperceive i’m a little off topic, but i just capital to say i adulation the blueprint of your blog. i’m new to the blogegine platform, so any suggestions on accepting my blog analytic nice would be appreciated.
I acquire to be the abandoned authentic getting who never heard of this diet plan above-mentioned to a ages ago. I still acquire the complete best admission to lose weight is just to complete calories and ataxia aliment and sweets and not hunt any specific diet plan. Just eat abounding less, just a little of everything. Atkins diet sounds astute to me accurately acclimatized that it causes poor action and getting like that. No accede you, but for those who like it that’s able but it’s just not? for me.
I apperceive i’m a little off topic, but i just capital to say i adulation the blueprint of your blog. i’m new to the blogegine platform, so any suggestions on accepting my blog analytic nice would be appreciated.
Post a Comment