{"id":8,"date":"2006-01-24T20:55:07","date_gmt":"2006-01-24T19:55:07","guid":{"rendered":"http:\/\/kudzia.eu\/b\/?p=8"},"modified":"2011-04-30T10:22:45","modified_gmt":"2011-04-30T09:22:45","slug":"getting-root-acces-to-your-linux-without-knowing-the-password","status":"publish","type":"post","link":"https:\/\/kudzia.eu\/b\/2006\/01\/getting-root-acces-to-your-linux-without-knowing-the-password\/","title":{"rendered":"getting root acces to your linux without knowing the password"},"content":{"rendered":"<p>you have your linux box&#8230; and you dont remember root password. it happens all the time, doesnt it?<\/p>\n<p>you can change the password if you have direct access to computer\u2019s console and there is no additional protection on boot-loader level. you just need to provide additional parameters to the kernel: single init=\/bin\/bash<\/p>\n<p>to do so in grub select your favorite kernel, press e to edit it, highlight second line with kernel parameters and press e again. add at the end of line single init=\/bin\/bash, press enter and then b to boot. you\u2019ll get root prompt after a while. you can use passwd or just vi \/etc\/shadow.<\/p>\n<p>tested with redhat and debian. <\/p>\n","protected":false},"excerpt":{"rendered":"<p>you have your linux box&#8230; and you dont remember root password. it happens all the time, doesnt it? you can change the password if you have direct access to computer\u2019s console and there is no additional protection on boot-loader level. you just need to provide additional parameters to the kernel: single init=\/bin\/bash to do so [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[13,17],"tags":[3],"class_list":["post-8","post","type-post","status-publish","format-standard","hentry","category-non-tech","category-tech","tag-old-stuff"],"_links":{"self":[{"href":"https:\/\/kudzia.eu\/b\/wp-json\/wp\/v2\/posts\/8","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/kudzia.eu\/b\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/kudzia.eu\/b\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/kudzia.eu\/b\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/kudzia.eu\/b\/wp-json\/wp\/v2\/comments?post=8"}],"version-history":[{"count":4,"href":"https:\/\/kudzia.eu\/b\/wp-json\/wp\/v2\/posts\/8\/revisions"}],"predecessor-version":[{"id":623,"href":"https:\/\/kudzia.eu\/b\/wp-json\/wp\/v2\/posts\/8\/revisions\/623"}],"wp:attachment":[{"href":"https:\/\/kudzia.eu\/b\/wp-json\/wp\/v2\/media?parent=8"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/kudzia.eu\/b\/wp-json\/wp\/v2\/categories?post=8"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/kudzia.eu\/b\/wp-json\/wp\/v2\/tags?post=8"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}