{"id":511,"date":"2014-08-07T04:28:39","date_gmt":"2014-08-07T04:28:39","guid":{"rendered":"https:\/\/qbytes.cloud\/?p=511"},"modified":"2014-08-07T04:28:39","modified_gmt":"2014-08-07T04:28:39","slug":"how-to-chownchmod-all-files-in-current-directory","status":"publish","type":"post","link":"https:\/\/www.qbytes.cloud\/index.php\/2014\/08\/07\/how-to-chownchmod-all-files-in-current-directory\/","title":{"rendered":"How to chown\/chmod all files in current directory?"},"content":{"rendered":"<p>So &#8211; you migrated some file to a plesk\/cpanel server and the ownership is wrong. Here is how to change it.<br \/>\nPlesk<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\n&#x5B;root@austin httpdocs]# cd \/var\/www\/vhosts\/domain.com\/httpdocs\/\n&#x5B;root@austin httpdocs]# chown -R  user:group *\n\n<\/pre>\n<p>cPanel<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\n&#x5B;root@austin httpdocs]# cd \/home\/user\/public_html\/\n&#x5B;root@austin httpdocs]# chown -R  user:group *\n\n<\/pre>\n<p>Or<\/p>\n<p>Plesk<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\n&#x5B;root@austin httpdocs]# chown -R  user:group \/var\/www\/vhosts\/domain.com\/httpdocs\/*\n<\/pre>\n<p>cPanel<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\n&#x5B;root@austin httpdocs]# chown -R  user:group \/home\/user\/public_html\/*\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>So &#8211; you migrated some file to a plesk\/cpanel server and the ownership is wrong. Here is how to change it. Plesk &#x5B;root@austin httpdocs]# cd \/var\/www\/vhosts\/domain.com\/httpdocs\/ &#x5B;root@austin httpdocs]# chown -R user:group * cPanel &#x5B;root@austin httpdocs]# cd \/home\/user\/public_html\/ &#x5B;root@austin httpdocs]# chown -R user:group * Or Plesk &#x5B;root@austin httpdocs]# chown -R user:group \/var\/www\/vhosts\/domain.com\/httpdocs\/* cPanel &#x5B;root@austin httpdocs]# chown &#8230; <a title=\"How to chown\/chmod all files in current directory?\" class=\"read-more\" href=\"https:\/\/www.qbytes.cloud\/index.php\/2014\/08\/07\/how-to-chownchmod-all-files-in-current-directory\/\" aria-label=\"Read more about How to chown\/chmod all files in current directory?\">Read more<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2,86],"tags":[],"class_list":["post-511","post","type-post","status-publish","format-standard","hentry","category-administration","category-plesk"],"_links":{"self":[{"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/posts\/511","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/comments?post=511"}],"version-history":[{"count":0,"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/posts\/511\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/media?parent=511"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/categories?post=511"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/tags?post=511"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}