<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Password Recovery - Management or Cluster member in Firewall and Security Management</title>
    <link>https://community.checkpoint.com/t5/Firewall-and-Security-Management/Password-Recovery-Management-or-Cluster-member/m-p/197517#M36898</link>
    <description>&lt;P&gt;Looks like a reasonable procedure to me.&lt;BR /&gt;Thanks for sharing!&lt;/P&gt;</description>
    <pubDate>Wed, 08 Nov 2023 22:12:26 GMT</pubDate>
    <dc:creator>PhoneBoy</dc:creator>
    <dc:date>2023-11-08T22:12:26Z</dc:date>
    <item>
      <title>Password Recovery - Management or Cluster member</title>
      <link>https://community.checkpoint.com/t5/Firewall-and-Security-Management/Password-Recovery-Management-or-Cluster-member/m-p/197241#M36897</link>
      <description>&lt;P&gt;Hi everyone,&lt;/P&gt;&lt;P&gt;This is my first post. Enjoy.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This&amp;nbsp;procedure is to do a Password Recovery of the admin account.&lt;/P&gt;&lt;P&gt;The procedure is similar to the one specified in &lt;A href="https://support.checkpoint.com/results/sk/sk163461" target="_self"&gt;sk92663&lt;/A&gt;, but with some changes. I am not modify any system files.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Tested&lt;/STRONG&gt; in R81, R81.10.&lt;/P&gt;&lt;P&gt;Not test in R80.XX, buy i think will be work&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Prerequisites&lt;/STRONG&gt;:&lt;/P&gt;&lt;P&gt;- live linux CD (in my case i will be use ubuntu iso)&lt;/P&gt;&lt;P&gt;- Another virtual, server or PC with linux (Any distro)&lt;/P&gt;&lt;P&gt;- "Another linux" and CheckPoint Management must have network connection.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;1)&lt;/STRONG&gt; boot live linux,&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="mnocciolino_0-1699292465222.png" style="width: 400px;"&gt;&lt;img src="https://community.checkpoint.com/t5/image/serverpage/image-id/23064iC2C3C857C530E2CD/image-size/medium?v=v2&amp;amp;px=400" role="button" title="mnocciolino_0-1699292465222.png" alt="mnocciolino_0-1699292465222.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;2)&lt;/STRONG&gt; Preparing "Another linux"&lt;/P&gt;&lt;P&gt;Generate the id_rsa, with the following command&lt;/P&gt;&lt;P&gt;&lt;EM&gt;ssh-keygen&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Sin título.png" style="width: 400px;"&gt;&lt;img src="https://community.checkpoint.com/t5/image/serverpage/image-id/23065i19B48D711D0B3459/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Sin título.png" alt="Sin título.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;3)&amp;nbsp;&lt;/STRONG&gt;in Linux live we install ssh, because it does not come by default, and we change the default user password that comes by default. In my case it is "&lt;EM&gt;Ubuntu&lt;/EM&gt;".&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="mnocciolino_6-1699293438457.png" style="width: 400px;"&gt;&lt;img src="https://community.checkpoint.com/t5/image/serverpage/image-id/23066i2734FE1E581E2B03/image-size/medium?v=v2&amp;amp;px=400" role="button" title="mnocciolino_6-1699293438457.png" alt="mnocciolino_6-1699293438457.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="mnocciolino_7-1699293450483.png" style="width: 400px;"&gt;&lt;img src="https://community.checkpoint.com/t5/image/serverpage/image-id/23067i1EBDCF8823A63116/image-size/medium?v=v2&amp;amp;px=400" role="button" title="mnocciolino_7-1699293450483.png" alt="mnocciolino_7-1699293450483.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;4)&lt;/STRONG&gt;&amp;nbsp;Log in via ssh to the live Linux and paste the following commands as &lt;EM&gt;root&lt;/EM&gt;:&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Note: This commands are parts of &lt;A href="https://support.checkpoint.com/results/sk/sk163461" target="_self"&gt;sk92663&lt;/A&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;sudo su&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;mkdir /mnt/gaia&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;mount /dev/vg_splat/lv_current /mnt/gaia&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;mount /dev/vg_splat/lv_log /mnt/gaia/var/log&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;mount /dev/sda1 /mnt/gaia/boot&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;mount --bind /dev /mnt/gaia/dev&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;mount --bind /proc /mnt/gaia/proc&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;mount --bind /sys /mnt/gaia/sys&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;EM&gt;chroot /mnt/gaia /bin/bash&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="mnocciolino_8-1699293955128.png" style="width: 400px;"&gt;&lt;img src="https://community.checkpoint.com/t5/image/serverpage/image-id/23068iE529B51823D32BF8/image-size/medium?v=v2&amp;amp;px=400" role="button" title="mnocciolino_8-1699293955128.png" alt="mnocciolino_8-1699293955128.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;5)&amp;nbsp;&lt;/STRONG&gt;Set the following command and paste it, the user and IP are from the "Another Linux".&lt;/P&gt;&lt;P data-unlink="true"&gt;ssh user@&amp;lt;ip&amp;nbsp; address&amp;gt; cat .ssh/id_rsa.pub | tee -a /home/admin/.ssh/authorized_keys&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Sin título1.png" style="width: 400px;"&gt;&lt;img src="https://community.checkpoint.com/t5/image/serverpage/image-id/23072iFA78EC63AF98224C/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Sin título1.png" alt="Sin título1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;This command como the content form id_rsa.pub to&amp;nbsp;authorized_keys&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;6)&lt;/STRONG&gt; Reboot Management&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="mnocciolino_9-1699295213754.png" style="width: 400px;"&gt;&lt;img src="https://community.checkpoint.com/t5/image/serverpage/image-id/23070i5664416207C3B8FB/image-size/medium?v=v2&amp;amp;px=400" role="button" title="mnocciolino_9-1699295213754.png" alt="mnocciolino_9-1699295213754.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;7)&lt;/STRONG&gt;&amp;nbsp;When it finishes booting, log in via ssh with the &lt;EM&gt;admin&lt;/EM&gt; user, from the "Another Linux" and you should log in without password.&lt;/P&gt;&lt;P data-unlink="true"&gt;ssh admin@&amp;lt;ip&amp;nbsp;&amp;nbsp;address&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Sin título2.png" style="width: 400px;"&gt;&lt;img src="https://community.checkpoint.com/t5/image/serverpage/image-id/23076iD6143493CF9ED7D0/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Sin título2.png" alt="Sin título2.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;8)&lt;/img&gt;&lt;/STRONG&gt; Now we can change &lt;EM&gt;admin&lt;/EM&gt; password from &lt;EM&gt;clish.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;-----------&lt;/P&gt;&lt;P&gt;Any suggestions or comments are welcome&lt;/P&gt;&lt;P&gt;mnocciolino&lt;/P&gt;</description>
      <pubDate>Mon, 06 Nov 2023 21:08:54 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Firewall-and-Security-Management/Password-Recovery-Management-or-Cluster-member/m-p/197241#M36897</guid>
      <dc:creator>mnocciolino</dc:creator>
      <dc:date>2023-11-06T21:08:54Z</dc:date>
    </item>
    <item>
      <title>Re: Password Recovery - Management or Cluster member</title>
      <link>https://community.checkpoint.com/t5/Firewall-and-Security-Management/Password-Recovery-Management-or-Cluster-member/m-p/197517#M36898</link>
      <description>&lt;P&gt;Looks like a reasonable procedure to me.&lt;BR /&gt;Thanks for sharing!&lt;/P&gt;</description>
      <pubDate>Wed, 08 Nov 2023 22:12:26 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Firewall-and-Security-Management/Password-Recovery-Management-or-Cluster-member/m-p/197517#M36898</guid>
      <dc:creator>PhoneBoy</dc:creator>
      <dc:date>2023-11-08T22:12:26Z</dc:date>
    </item>
  </channel>
</rss>

