{"id":118,"date":"2009-09-28T02:36:46","date_gmt":"2009-09-28T06:36:46","guid":{"rendered":"http:\/\/linuxhostingsupport.net\/blog\/?p=118"},"modified":"2013-03-20T08:39:37","modified_gmt":"2013-03-20T12:39:37","slug":"correcting-ownership-of-all-cpanel-users","status":"publish","type":"post","link":"https:\/\/linuxhostingsupport.net\/blog\/correcting-ownership-of-all-cpanel-users","title":{"rendered":"Correcting ownership of all cPanel Users"},"content":{"rendered":"<p>If you mess up with the <strong>ownership of all the users on a cPanel server<\/strong>, following script will help you to correct the ownership:<\/p>\n<blockquote><p><span style=\"color: #0000ff;\"><strong>#\u00a0 for i in `cat \/etc\/trueuserdomains | awk &#8216;{print $2}&#8217;`<br \/>\n&gt; do<br \/>\n&gt; \/bin\/chown $i.$i \/home\/$i -R;<\/strong><strong> <\/strong><\/span><br \/>\n<span style=\"color: #0000ff;\"><strong>&gt; \/bin\/chown $i.mail \/home\/$i\/etc -R;<\/strong><\/span><br \/>\n<strong><span style=\"color: #0000ff;\"><\/span><\/strong><span style=\"color: #0000ff;\"><strong>&gt; \/bin\/chown $i.nobody \/home\/$i\/public_html;<br \/>\n&gt; done;<\/strong><\/span><\/p><\/blockquote>\n<p>The ownership of the home directory of a user, etc and public_tml will be corrected in a one go.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>If you mess up with the ownership of all the users on a cPanel server, following script will help you to correct the ownership:<br \/>\n#\u00a0 for i in `cat \/etc\/trueuserdomains | awk &#8216;{print $2}&#8217;`<br \/>\n&gt; do<br \/>\n&gt; \/bin\/chown $i.$i \/home\/$i -R;<br \/>\n&gt; \/bin\/chown $i.mail \/home\/$i\/etc -R;<br \/>\n&gt; \/bin\/chown $i.nobody \/home\/$i\/public_html;<br \/>\n&gt; done;<br \/>\nThe ownership of the home directory of a user, etc and public_tml will be corrected in a one go.<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[106],"tags":[109,110,108,107],"_links":{"self":[{"href":"https:\/\/linuxhostingsupport.net\/blog\/wp-json\/wp\/v2\/posts\/118"}],"collection":[{"href":"https:\/\/linuxhostingsupport.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/linuxhostingsupport.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/linuxhostingsupport.net\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/linuxhostingsupport.net\/blog\/wp-json\/wp\/v2\/comments?post=118"}],"version-history":[{"count":6,"href":"https:\/\/linuxhostingsupport.net\/blog\/wp-json\/wp\/v2\/posts\/118\/revisions"}],"predecessor-version":[{"id":496,"href":"https:\/\/linuxhostingsupport.net\/blog\/wp-json\/wp\/v2\/posts\/118\/revisions\/496"}],"wp:attachment":[{"href":"https:\/\/linuxhostingsupport.net\/blog\/wp-json\/wp\/v2\/media?parent=118"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/linuxhostingsupport.net\/blog\/wp-json\/wp\/v2\/categories?post=118"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/linuxhostingsupport.net\/blog\/wp-json\/wp\/v2\/tags?post=118"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}