{"id":302,"date":"2008-05-12T20:05:13","date_gmt":"2008-05-12T17:05:13","guid":{"rendered":"http:\/\/www.void.gr\/kargig\/blog\/?p=302"},"modified":"2008-06-06T01:14:22","modified_gmt":"2008-06-05T22:14:22","slug":"jailkit-23-ebuild-patch-fix-for-sunrise-overlay","status":"publish","type":"post","link":"https:\/\/www.void.gr\/kargig\/blog\/2008\/05\/12\/jailkit-23-ebuild-patch-fix-for-sunrise-overlay\/","title":{"rendered":"jailkit-2.3 ebuild patch fix for sunrise overlay"},"content":{"rendered":"<p>There&#8217;s an <a href=\"http:\/\/overlays.gentoo.org\/proj\/sunrise\/browser\/sunrise\/app-admin\/jailkit\">ebuild for jailkit version 2.3 on sunrise overlay<\/a>. Unfortunately it has a bug that can cause severe headaches. It patches your \/etc\/shells in a VERY wrong way so that you can easily end up  _only_ with \/usr\/sbin\/jk_chrootsh inside \/etc\/shells. This can lock you out of your machine!<\/p>\n<p>This behaviour is due to a patch that comes with the ebuild named: <a href=\"http:\/\/overlays.gentoo.org\/proj\/sunrise\/browser\/sunrise\/app-admin\/jailkit\/files\/jailkit-2.3-destdir.patch\">jailkit-2.3-destdir.patch<\/a>.<br \/>\nIn order to fix this behavior, I&#8217;ve patched the patch so that it works as it should. Now it just adds &#8220;\/usr\/sbin\/jk_chrootsh&#8221; under all the previous shells you had in your \/etc\/shells file.<\/p>\n<p>Full File: <a href='http:\/\/www.void.gr\/kargig\/blog\/wp-content\/jailkit-2.3-destdir.patch'>jailkit-2.3-destdir.patch<\/a><br \/>\nPatched File: <a href='http:\/\/www.void.gr\/kargig\/blog\/wp-content\/jailkit-2.3-destdir.patch.patch'>jailkit-2.3-destdir.patch.patch<\/a>  (wonderfull name :P)<\/p>\n","protected":false},"excerpt":{"rendered":"<p>There&#8217;s an ebuild for jailkit version 2.3 on sunrise overlay. Unfortunately it has a bug that can cause severe headaches. It patches your \/etc\/shells in a VERY wrong way so that you can easily end up _only_ with \/usr\/sbin\/jk_chrootsh inside \/etc\/shells. This can lock you out of your machine! This behaviour is due to a [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"ep_exclude_from_search":false,"footnotes":""},"categories":[12,3],"tags":[],"class_list":["post-302","post","type-post","status-publish","format-standard","hentry","category-gentoo","category-linux"],"aioseo_notices":[],"views":4393,"_links":{"self":[{"href":"https:\/\/www.void.gr\/kargig\/blog\/wp-json\/wp\/v2\/posts\/302","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.void.gr\/kargig\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.void.gr\/kargig\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.void.gr\/kargig\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.void.gr\/kargig\/blog\/wp-json\/wp\/v2\/comments?post=302"}],"version-history":[{"count":0,"href":"https:\/\/www.void.gr\/kargig\/blog\/wp-json\/wp\/v2\/posts\/302\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.void.gr\/kargig\/blog\/wp-json\/wp\/v2\/media?parent=302"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.void.gr\/kargig\/blog\/wp-json\/wp\/v2\/categories?post=302"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.void.gr\/kargig\/blog\/wp-json\/wp\/v2\/tags?post=302"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}