<?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: How to add new user into multiple gateways by 80.30 One Time Script Mgmt in Firewall and Security Management</title>
    <link>https://community.checkpoint.com/t5/Firewall-and-Security-Management/How-to-add-new-user-into-multiple-gateways-by-80-30-One-Time/m-p/122958#M17606</link>
    <description>&lt;P&gt;It is really funny your new "team member" is called indeni &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;For the matter, yes you can script it with clish. Use set user password-hash instead of the password. Take hash from a known password, or generate with md5.&lt;BR /&gt;&lt;BR /&gt;If it was not Indeni, I would actually recommend Radius user defined, but here you do need a local user.&lt;BR /&gt;&lt;BR /&gt;For remote execution, I would recommend using cprid utility, ran on your MGMT server CLI:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;PRE&gt;$CPDIR/bin/cprid_util -server &amp;lt;IP_address_of_Security_Gateway&amp;gt; -verbose rexec -rcmd /bin/clish -s -c '&amp;lt;your single clish command'&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;This allows you to avoid admin authentication before you start dropping commands.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Send each new CLISH line with a separate command. Do not forget to use 'set config-lock on override' for the first one and then 'save config' for the last, on each GW.&lt;BR /&gt;&lt;BR /&gt;Test your script before mass deployment &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 05 Jul 2021 09:45:54 GMT</pubDate>
    <dc:creator>_Val_</dc:creator>
    <dc:date>2021-07-05T09:45:54Z</dc:date>
    <item>
      <title>How to add new user into multiple gateways by 80.30 One Time Script Mgmt</title>
      <link>https://community.checkpoint.com/t5/Firewall-and-Security-Management/How-to-add-new-user-into-multiple-gateways-by-80-30-One-Time/m-p/122944#M17604</link>
      <description>&lt;P&gt;Hi, we have a new member of the team and we need to add his user to the gateways we manage (they are more than 100). After the management migration to 80.30 we find the One Time Script voice that can be useful. Is it possible create a script to launch once on all firewall in order to create the new user?&lt;/P&gt;&lt;P&gt;As per documentation, we used this command to every single firewall:&lt;/P&gt;&lt;P&gt;Add the user (in the example we are using the username indeni):&lt;BR /&gt;add user indeni uid 0 homedir /home/indeni&lt;BR /&gt;Set the password for the user:&lt;BR /&gt;set user indeni password&lt;BR /&gt;New password: [xxxx]&lt;BR /&gt;Verify new password: [xxxx]&lt;BR /&gt;Type the following to add the access role adminRole:&lt;BR /&gt;add rba user indeni roles adminRole&lt;BR /&gt;Type the following to set the shell to /bin/bash:&lt;BR /&gt;set user indeni shell /etc/cli.sh&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can we automate with a script? Thanks&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 05 Jul 2021 09:00:43 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Firewall-and-Security-Management/How-to-add-new-user-into-multiple-gateways-by-80-30-One-Time/m-p/122944#M17604</guid>
      <dc:creator>alexc88</dc:creator>
      <dc:date>2021-07-05T09:00:43Z</dc:date>
    </item>
    <item>
      <title>Re: How to add new user into multiple gateways by 80.30 One Time Script Mgmt</title>
      <link>https://community.checkpoint.com/t5/Firewall-and-Security-Management/How-to-add-new-user-into-multiple-gateways-by-80-30-One-Time/m-p/122958#M17606</link>
      <description>&lt;P&gt;It is really funny your new "team member" is called indeni &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;For the matter, yes you can script it with clish. Use set user password-hash instead of the password. Take hash from a known password, or generate with md5.&lt;BR /&gt;&lt;BR /&gt;If it was not Indeni, I would actually recommend Radius user defined, but here you do need a local user.&lt;BR /&gt;&lt;BR /&gt;For remote execution, I would recommend using cprid utility, ran on your MGMT server CLI:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;PRE&gt;$CPDIR/bin/cprid_util -server &amp;lt;IP_address_of_Security_Gateway&amp;gt; -verbose rexec -rcmd /bin/clish -s -c '&amp;lt;your single clish command'&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;This allows you to avoid admin authentication before you start dropping commands.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Send each new CLISH line with a separate command. Do not forget to use 'set config-lock on override' for the first one and then 'save config' for the last, on each GW.&lt;BR /&gt;&lt;BR /&gt;Test your script before mass deployment &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 05 Jul 2021 09:45:54 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Firewall-and-Security-Management/How-to-add-new-user-into-multiple-gateways-by-80-30-One-Time/m-p/122958#M17606</guid>
      <dc:creator>_Val_</dc:creator>
      <dc:date>2021-07-05T09:45:54Z</dc:date>
    </item>
  </channel>
</rss>

