{"id":2257,"date":"2019-06-12T14:44:07","date_gmt":"2019-06-12T13:44:07","guid":{"rendered":"https:\/\/www.cyber-cottage.eu\/?p=2257"},"modified":"2021-10-01T14:06:58","modified_gmt":"2021-10-01T13:06:58","slug":"resetting-root-password-on-freepbx-14-and-other-centos-7-servers","status":"publish","type":"post","link":"https:\/\/www.cyber-cottage.co.uk\/?p=2257","title":{"rendered":"Resetting root password on FreePBX 14 and other Centos 7 servers"},"content":{"rendered":"\n<p>Boot your system and wait until the GRUB menu appears. On some systems you may need to press the &#8220;Escape&#8221; key to access the GRUB menu. FreePBX should show this for a few seconds on Boot<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" width=\"580\" height=\"312\" data-attachment-id=\"2262\" data-permalink=\"https:\/\/www.cyber-cottage.co.uk\/?attachment_id=2262\" data-orig-file=\"https:\/\/i0.wp.com\/www.cyber-cottage.co.uk\/wp-content\/uploads\/2019\/06\/reset_root_centos_7_01.png?fit=718%2C386&amp;ssl=1\" data-orig-size=\"718,386\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"reset_root_centos_7_01\" data-image-description=\"\" data-image-caption=\"\" data-large-file=\"https:\/\/i0.wp.com\/www.cyber-cottage.co.uk\/wp-content\/uploads\/2019\/06\/reset_root_centos_7_01.png?fit=580%2C312&amp;ssl=1\" src=\"https:\/\/i0.wp.com\/www.cyber-cottage.co.uk\/wp-content\/uploads\/2019\/06\/reset_root_centos_7_01.png?resize=580%2C312&#038;ssl=1\" alt=\"\" class=\"wp-image-2262\"\/><\/figure>\n\n\n\n<p>Highlight your Operating System and then press &#8220;<strong>e<\/strong>&#8221; to edit. You have to be quick here simpler to just press e when the menu appears and you will see similar to below.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" width=\"580\" height=\"306\" data-attachment-id=\"2261\" data-permalink=\"https:\/\/www.cyber-cottage.co.uk\/?attachment_id=2261\" data-orig-file=\"https:\/\/i0.wp.com\/www.cyber-cottage.co.uk\/wp-content\/uploads\/2019\/06\/reset_root_centos_7_02.png?fit=720%2C380&amp;ssl=1\" data-orig-size=\"720,380\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"reset_root_centos_7_02\" data-image-description=\"\" data-image-caption=\"\" data-large-file=\"https:\/\/i0.wp.com\/www.cyber-cottage.co.uk\/wp-content\/uploads\/2019\/06\/reset_root_centos_7_02.png?fit=580%2C306&amp;ssl=1\" src=\"https:\/\/i0.wp.com\/www.cyber-cottage.co.uk\/wp-content\/uploads\/2019\/06\/reset_root_centos_7_02.png?resize=580%2C306&#038;ssl=1\" alt=\"\" class=\"wp-image-2261\"\/><\/figure>\n\n\n\n<p>Find the line beginning with&nbsp;<strong>linux<\/strong>. In this example the line begins&nbsp;<strong>linux16<\/strong>.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" width=\"580\" height=\"56\" data-attachment-id=\"2260\" data-permalink=\"https:\/\/www.cyber-cottage.co.uk\/?attachment_id=2260\" data-orig-file=\"https:\/\/i0.wp.com\/www.cyber-cottage.co.uk\/wp-content\/uploads\/2019\/06\/reset_root_centos_7_03a.png?fit=721%2C69&amp;ssl=1\" data-orig-size=\"721,69\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"reset_root_centos_7_03a\" data-image-description=\"\" data-image-caption=\"\" data-large-file=\"https:\/\/i0.wp.com\/www.cyber-cottage.co.uk\/wp-content\/uploads\/2019\/06\/reset_root_centos_7_03a.png?fit=580%2C56&amp;ssl=1\" src=\"https:\/\/i0.wp.com\/www.cyber-cottage.co.uk\/wp-content\/uploads\/2019\/06\/reset_root_centos_7_03a.png?resize=580%2C56&#038;ssl=1\" alt=\"\" class=\"wp-image-2260\"\/><\/figure>\n\n\n\n<p>Manually delete the entries&nbsp;<strong>quiet<\/strong>&nbsp;and <strong>rhgb<\/strong> from the line. then append the following statement to the end of the line&nbsp;<strong>init=\/bin\/sh<\/strong>  Don&#8217;t worry if your command is spread across more than one line. A continuation character &#8220;<strong>\\<\/strong>&nbsp;will be inserted automatically.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" width=\"580\" height=\"294\" data-attachment-id=\"2259\" data-permalink=\"https:\/\/www.cyber-cottage.co.uk\/?attachment_id=2259\" data-orig-file=\"https:\/\/i0.wp.com\/www.cyber-cottage.co.uk\/wp-content\/uploads\/2019\/06\/reset_root_centos_7_03.png?fit=721%2C366&amp;ssl=1\" data-orig-size=\"721,366\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"reset_root_centos_7_03\" data-image-description=\"\" data-image-caption=\"\" data-large-file=\"https:\/\/i0.wp.com\/www.cyber-cottage.co.uk\/wp-content\/uploads\/2019\/06\/reset_root_centos_7_03.png?fit=580%2C294&amp;ssl=1\" src=\"https:\/\/i0.wp.com\/www.cyber-cottage.co.uk\/wp-content\/uploads\/2019\/06\/reset_root_centos_7_03.png?resize=580%2C294&#038;ssl=1\" alt=\"\" class=\"wp-image-2259\"\/><\/figure>\n\n\n\n<p>Now reboot your system now using the options specified by pressing the keys&nbsp;<strong>Ctrl +X<\/strong><\/p>\n\n\n\n<p>Once the system has re-booted, you will be presented with a shell prompt without having to enter any user name or password.<\/p>\n\n\n\n<p>At this command prompt you will need to enter the following commands:<\/p>\n\n\n\n<p>Remount the &#8220;\/&#8221; root filesystem in Read\/Write mode:&nbsp;<strong>mount -o remount,rw \/<\/strong><\/p>\n\n\n\n<p>Issue the passwd command to reset the root account password:&nbsp;<strong>passwd<\/strong><\/p>\n\n\n\n<p>Then enter the new password as prompted twice<\/p>\n\n\n\n<p>Then remount the &#8220;\/&#8221; root filesystem in Read Only mode:&nbsp;<strong>mount -o remount,ro \/<\/strong><\/p>\n\n\n\n<figure class=\"wp-block-image\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" width=\"580\" height=\"155\" data-attachment-id=\"2258\" data-permalink=\"https:\/\/www.cyber-cottage.co.uk\/?attachment_id=2258\" data-orig-file=\"https:\/\/i0.wp.com\/www.cyber-cottage.co.uk\/wp-content\/uploads\/2019\/06\/centos_7_reset_002.png?fit=720%2C192&amp;ssl=1\" data-orig-size=\"720,192\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"centos_7_reset_002\" data-image-description=\"\" data-image-caption=\"\" data-large-file=\"https:\/\/i0.wp.com\/www.cyber-cottage.co.uk\/wp-content\/uploads\/2019\/06\/centos_7_reset_002.png?fit=580%2C155&amp;ssl=1\" src=\"https:\/\/i0.wp.com\/www.cyber-cottage.co.uk\/wp-content\/uploads\/2019\/06\/centos_7_reset_002.png?resize=580%2C155&#038;ssl=1\" alt=\"\" class=\"wp-image-2258\"\/><\/figure>\n\n\n\n<p>You can now restart the system and login with your new password.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Boot your system and wait until the GRUB menu appears. On some systems you may need to press the &#8220;Escape&#8221; key to access the GRUB menu. FreePBX should show this for a few seconds on Boot Highlight your Operating System and then press &#8220;e&#8221; to edit. You have to be quick here simpler to just [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":2262,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"content-type":"","advanced_seo_description":"","jetpack_seo_html_title":"","jetpack_seo_noindex":false,"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[88,104,11,6,7],"tags":[23,40,51,76],"class_list":["post-2257","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-astsupport","category-freepbx","category-knowledge","category-support-services","category-technical","tag-asterisk","tag-freepbx","tag-linux","tag-voip"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"https:\/\/i0.wp.com\/www.cyber-cottage.co.uk\/wp-content\/uploads\/2019\/06\/reset_root_centos_7_01.png?fit=718%2C386&ssl=1","jetpack_shortlink":"https:\/\/wp.me\/p5daZy-Ap","jetpack_sharing_enabled":true,"jetpack_likes_enabled":false,"jetpack-related-posts":[],"_links":{"self":[{"href":"https:\/\/www.cyber-cottage.co.uk\/index.php?rest_route=\/wp\/v2\/posts\/2257","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.cyber-cottage.co.uk\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.cyber-cottage.co.uk\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.cyber-cottage.co.uk\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.cyber-cottage.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2257"}],"version-history":[{"count":2,"href":"https:\/\/www.cyber-cottage.co.uk\/index.php?rest_route=\/wp\/v2\/posts\/2257\/revisions"}],"predecessor-version":[{"id":2786,"href":"https:\/\/www.cyber-cottage.co.uk\/index.php?rest_route=\/wp\/v2\/posts\/2257\/revisions\/2786"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.cyber-cottage.co.uk\/index.php?rest_route=\/wp\/v2\/media\/2262"}],"wp:attachment":[{"href":"https:\/\/www.cyber-cottage.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2257"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.cyber-cottage.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2257"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.cyber-cottage.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2257"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}