{"id":1794,"date":"2012-06-07T11:04:00","date_gmt":"2012-06-07T11:04:00","guid":{"rendered":"http:\/\/www.serverslot.com\/?p=1794"},"modified":"2013-01-23T17:47:39","modified_gmt":"2013-01-23T17:47:39","slug":"how-to-check-wrong-permissions-like-777-in-the-whole-linux-dedicated-server","status":"publish","type":"post","link":"https:\/\/serverslot.com\/hosting-issues\/how-to-check-wrong-permissions-like-777-in-the-whole-linux-dedicated-server\/","title":{"rendered":"How to check wrong permissions like 777 in the whole linux dedicated server"},"content":{"rendered":"<p>You can check any wrong or 777 permission granted to any folder in your dedicated server just by one command.<\/p>\n<p>Steps to check wrong permission of the folders in dedicated linux server.<\/p>\n<ol>\n<li>Login to your server through root \u00a0using potty software<\/li>\n<li>Copy and paste that command<\/li>\n<\/ol>\n<p>find \/home\/*\/public_html -type d -perm 777 &gt; \/root\/wrongPERM.log<br \/>\ni=&#8221;\/var\/infected\/&#8221; ; mkdir -p $i ; chown root:root $i ; chmod 700 $i ; clamscan &#8211;include-dir=\/home\/ &#8211;include-dir=\/root\/ &#8211;include-dir=\/tmp\/ &#8211;quiet -r -i -l<\/p>\n<p>It will start checking your server for wrong permissions. will take a bit time, when the process would be completed you can download file named as wrongPERM.log available under root folder.<\/p>\n<p>You can download this file and open using any of the programme like word pad, word or note pad.<\/p>\n<p>After opening this file, you can check the folders with 777 permission and change them to 755 maximum.<\/p>\n<p><script type=\"text\/javascript\"><!--\ngoogle_ad_client = \"ca-pub-6441688276343625\";\n\/* serverslot small horizontal *\/\ngoogle_ad_slot = \"7309259884\";\ngoogle_ad_width = 468;\ngoogle_ad_height = 60;\n\/\/-->\n<\/script><br \/>\n<script type=\"text\/javascript\"\nsrc=\"http:\/\/pagead2.googlesyndication.com\/pagead\/show_ads.js\">\n<\/script><\/p>\n<p>Keep in mind the maximum permissions to folder could be 755 and maximum permissions to file could be 644, if you will give more permissions than the last specified, it could harm your data by any hacker&#8217;s injection.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>You can check any wrong or 777 permission granted to any folder in your dedicated server just by one command. Steps to check wrong permission \u2026 <a href=\"https:\/\/serverslot.com\/hosting-issues\/how-to-check-wrong-permissions-like-777-in-the-whole-linux-dedicated-server\/\">more<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[3],"tags":[],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/serverslot.com\/hosting-issues\/wp-json\/wp\/v2\/posts\/1794"}],"collection":[{"href":"https:\/\/serverslot.com\/hosting-issues\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/serverslot.com\/hosting-issues\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/serverslot.com\/hosting-issues\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/serverslot.com\/hosting-issues\/wp-json\/wp\/v2\/comments?post=1794"}],"version-history":[{"count":0,"href":"https:\/\/serverslot.com\/hosting-issues\/wp-json\/wp\/v2\/posts\/1794\/revisions"}],"wp:attachment":[{"href":"https:\/\/serverslot.com\/hosting-issues\/wp-json\/wp\/v2\/media?parent=1794"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/serverslot.com\/hosting-issues\/wp-json\/wp\/v2\/categories?post=1794"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/serverslot.com\/hosting-issues\/wp-json\/wp\/v2\/tags?post=1794"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}