{"id":3023,"date":"2012-09-21T16:30:12","date_gmt":"2012-09-21T16:30:12","guid":{"rendered":"http:\/\/www.theperfectarts.com\/?p=3023"},"modified":"2013-01-14T18:01:06","modified_gmt":"2013-01-14T18:01:06","slug":"secure-tmp-partition-on-a-vps","status":"publish","type":"post","link":"https:\/\/www.ktchost.com\/blog\/secure-tmp-partition-on-a-vps\/","title":{"rendered":"Secure \/tmp partition on a VPS"},"content":{"rendered":"<p>To secure the Virtual Private Server (VPS) tmp partition refer to the followings steps one by one carefully.<\/p>\n<p>First login in to VPS as a root user.<\/p>\n<p>1) Open the the \/etc\/fstab file and add the following line in \/etc\/fstab but make sure that no duplicate entry is already present for \/tmp if any entry is present then remove it and add the following.<\/p>\n<p><strong>none \/tmp tmpfs nodev,nosuid,noexec 0 0<\/strong><\/p>\n<p>2) Save the \/etc\/fstab file and reboot the VPS. As soon as server up and running the server gets mounted \/tmp partition with the nosuid and noexec.<\/p>\n<p>3) Now make sure that \/tmp partition having correct permission<\/p>\n<p><strong>chmod 1777 \/tmp<\/strong><\/p>\n<p>Check the mount point values now by running the simple mount command.<\/p>\n<p><!-- Place this tag where you want the +1 button to render --><br \/>\n<g:plusone annotation=\"inline\"><\/g:plusone><\/p>\n<p><!-- Place this render call where appropriate --><br \/>\n<script type=\"text\/javascript\">\n  (function() {\n    var po = document.createElement('script'); po.type = 'text\/javascript'; po.async = true;\n    po.src = 'https:\/\/apis.google.com\/js\/plusone.js';\n    var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(po, s);\n  })();\n<\/script><\/p>\n","protected":false},"excerpt":{"rendered":"<div class=\"mh-excerpt\"><p>To secure the Virtual Private Server (VPS) tmp partition refer to the followings steps one by one carefully. First login in to VPS as a <a class=\"mh-excerpt-more\" href=\"https:\/\/www.ktchost.com\/blog\/secure-tmp-partition-on-a-vps\/\" title=\"Secure \/tmp partition on a VPS\">[&#8230;]<\/a><\/p>\n<\/div>","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-3023","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/www.ktchost.com\/blog\/wp-json\/wp\/v2\/posts\/3023"}],"collection":[{"href":"https:\/\/www.ktchost.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.ktchost.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.ktchost.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.ktchost.com\/blog\/wp-json\/wp\/v2\/comments?post=3023"}],"version-history":[{"count":4,"href":"https:\/\/www.ktchost.com\/blog\/wp-json\/wp\/v2\/posts\/3023\/revisions"}],"predecessor-version":[{"id":3401,"href":"https:\/\/www.ktchost.com\/blog\/wp-json\/wp\/v2\/posts\/3023\/revisions\/3401"}],"wp:attachment":[{"href":"https:\/\/www.ktchost.com\/blog\/wp-json\/wp\/v2\/media?parent=3023"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.ktchost.com\/blog\/wp-json\/wp\/v2\/categories?post=3023"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.ktchost.com\/blog\/wp-json\/wp\/v2\/tags?post=3023"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}