{"id":4052,"date":"2014-12-03T00:13:42","date_gmt":"2014-12-02T16:13:42","guid":{"rendered":"http:\/\/rmohan.com\/?p=4052"},"modified":"2014-12-03T00:13:42","modified_gmt":"2014-12-02T16:13:42","slug":"find-unauthorized-suidsgid-system-executables-and-fix-them","status":"publish","type":"post","link":"https:\/\/mohan.sg\/?p=4052","title":{"rendered":"find Unauthorized SUID\/SGID System Executables and fix them"},"content":{"rendered":"<p><strong>\u00a0find Unauthorized SUID\/SGID System Executables and fix them.<\/strong><\/p>\n<p>The following command discovers and prints any setuid or setgid files on local partitions. Run it once for each local partition PART:<\/p>\n<div class=\"dean_ch\">\n<div class=\"de1\"># find PART -xdev \\( -perm -4000 -o -perm -2000 \\) -type f -print<\/div>\n<\/div>\n<p>If the file does not require a setuid or setgid bit as discussed below, then these bits can be removed with the command:<\/p>\n<div class=\"dean_ch\">\n<div class=\"de1\"># chmod -s file<\/div>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p> find Unauthorized SUID\/SGID System Executables and fix them.<\/p>\n<p>The following command discovers and prints any setuid or setgid files on local partitions. Run it once for each local partition PART:<\/p>\n<p> # find PART -xdev \\( -perm -4000 -o -perm -2000 \\) -type f -print <\/p>\n<p>If the file does not require a setuid or setgid [&#8230;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5,4,17,50],"tags":[],"_links":{"self":[{"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/posts\/4052"}],"collection":[{"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/mohan.sg\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=4052"}],"version-history":[{"count":1,"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/posts\/4052\/revisions"}],"predecessor-version":[{"id":4053,"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/posts\/4052\/revisions\/4053"}],"wp:attachment":[{"href":"https:\/\/mohan.sg\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=4052"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mohan.sg\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=4052"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mohan.sg\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=4052"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}