<?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: MacOS uninstall password reset in Cortex XDR Discussions</title>
    <link>https://live.paloaltonetworks.com/t5/cortex-xdr-discussions/macos-uninstall-password-reset/m-p/1253467#M9305</link>
    <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://live.paloaltonetworks.com/t5/user/viewprofilepage/user-id/932715601"&gt;@ThisizAmen&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Greetings for the day.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;When a Cortex XDR agent becomes corrupted during an upgrade, it often loses communication with the management console. Because of this, any password changes you make in the console will not sync to the endpoint, and the agent will continue to require the password it last received or revert to the default&lt;/SPAN&gt;&lt;SPAN&gt;. Additionally, if the installation folder is damaged, the uninstaller itself may fail to validate credentials correctly&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P data-end="119" data-start="0"&gt;We recommend we try the following steps to reset the local configuration and attempt a removal with a default password.&lt;/P&gt;
&lt;P data-end="265" data-start="121"&gt;&lt;STRONG data-end="173" data-start="121"&gt;Method 1: Resetting Local Databases via Terminal&lt;/STRONG&gt;&lt;BR data-end="176" data-start="173" /&gt;This method attempts to clear the local settings so the agent reverts to a default state.&lt;/P&gt;
&lt;OL data-end="1054" data-start="267"&gt;
&lt;LI data-end="313" data-start="267" data-section-id="1xt7uxc"&gt;Open the Terminal application on the Mac.&lt;/LI&gt;
&lt;LI data-end="462" data-start="314" data-section-id="rrzfnf"&gt;Unload the agent daemon by running the following command:&lt;BR data-end="377" data-start="374" /&gt;&lt;CODE data-end="460" data-start="380"&gt;sudo launchctl unload /Library/LaunchDaemons/com.paloaltonetworks.trapsd.plist&lt;/CODE&gt;&lt;/LI&gt;
&lt;LI data-end="725" data-start="463" data-section-id="sa474c"&gt;Remove the local database files that store the configuration and password hashes:&lt;BR data-end="550" data-start="547" /&gt;&lt;CODE data-end="635" data-start="553"&gt;sudo rm /Library/Application\ Support/PaloAltoNetworks/Traps/db/agentsettings.db&lt;/CODE&gt;&lt;BR data-end="638" data-start="635" /&gt;&lt;CODE data-end="723" data-start="641"&gt;sudo rm /Library/Application\ Support/PaloAltoNetworks/Traps/db/cloudfrontend.db&lt;/CODE&gt;&lt;/LI&gt;
&lt;LI data-end="839" data-start="726" data-section-id="15y4zfd"&gt;Reload the agent daemon:&lt;BR data-end="756" data-start="753" /&gt;&lt;CODE data-end="837" data-start="759"&gt;sudo launchctl load /Library/LaunchDaemons/com.paloaltonetworks.trapsd.plist&lt;/CODE&gt;&lt;/LI&gt;
&lt;LI data-end="1054" data-start="840" data-section-id="os8imq"&gt;Attempt to run the uninstaller tool again. When it asks for a password, try using the default: Password1&lt;BR data-end="950" data-start="947" /&gt;&lt;CODE data-end="1052" data-start="953"&gt;sudo /Library/Application\ Support/PaloAltoNetworks/Traps/bin/cortexxdruninstaller_tool Password1&lt;/CODE&gt;&lt;/LI&gt;
&lt;/OL&gt;
&lt;P data-end="1224" data-start="1056"&gt;&lt;STRONG data-end="1102" data-start="1056"&gt;Method 2: Manual Removal via Recovery Mode&lt;/STRONG&gt;&lt;BR data-end="1105" data-start="1102" /&gt;If Method 1 fails (often due to Tamper Protection), we must bypass the agent's protection by using macOS Recovery Mode.&lt;/P&gt;
&lt;OL data-end="1864" data-start="1226"&gt;
&lt;LI data-end="1356" data-start="1226" data-section-id="zhmu11"&gt;Restart the Mac and boot into Recovery Mode (Hold Command+R for Intel Macs, or hold the Power button for Apple Silicon Macs).&lt;/LI&gt;
&lt;LI data-end="1404" data-start="1357" data-section-id="1986adj"&gt;Once in the Utilities menu, open Terminal.&lt;/LI&gt;
&lt;LI data-end="1656" data-start="1405" data-section-id="gi1ltm"&gt;You will need to delete the agent's service user configuration. Run the following command (replace [DISKNAME] with your drive name, usually Macintosh HD):&lt;BR data-end="1565" data-start="1562" /&gt;&lt;CODE data-end="1654" data-start="1568"&gt;rm -f /Volumes/[DISKNAME]/private/var/db/dslocal/nodes/Default/users/trapspanw.plist&lt;/CODE&gt;&lt;/LI&gt;
&lt;LI data-end="1705" data-start="1657" data-section-id="1mu43yx"&gt;Exit Terminal and restart the Mac normally.&lt;/LI&gt;
&lt;LI data-end="1864" data-start="1706" data-section-id="8gavrk"&gt;Once the Mac boots back up, open a standard Terminal and delete the service account from the system:&lt;BR data-end="1812" data-start="1809" /&gt;&lt;CODE data-end="1862" data-start="1815"&gt;sudo /usr/bin/dscl . -delete /Users/trapspanw&lt;/CODE&gt;&lt;/LI&gt;
&lt;/OL&gt;
&lt;P data-is-only-node="" data-is-last-node="" data-end="2061" data-start="1866"&gt;After completing these steps, the agent's core identity will be removed, allowing you to either run the uninstaller or manually delete the &lt;CODE data-end="2053" data-start="2005"&gt;/Library/Application Support/PaloAltoNetworks/&lt;/CODE&gt; folder.&lt;/P&gt;
&lt;P data-is-only-node="" data-is-last-node="" data-end="2061" data-start="1866"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you feel this has answered your query, please let us know by clicking&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;like&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;and on&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;"mark this as a Solution".&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;Thanks &amp;amp; Regards,&lt;BR /&gt;S. Subashkar Sekar&lt;/P&gt;
&lt;P data-is-only-node="" data-is-last-node="" data-end="2061" data-start="1866"&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 05 May 2026 13:48:36 GMT</pubDate>
    <dc:creator>susekar</dc:creator>
    <dc:date>2026-05-05T13:48:36Z</dc:date>
    <item>
      <title>MacOS uninstall password reset</title>
      <link>https://live.paloaltonetworks.com/t5/cortex-xdr-discussions/macos-uninstall-password-reset/m-p/1253463#M9303</link>
      <description>&lt;P&gt;Greetings!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have a problem about Cortex XDR uninstall password in MacOS. The agent got corrupted while upgrading and from then on it is not upgrading to a new version thats why i was trying to uninstall cortex agent then reinstall new one.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;sudo "/Library/Application Support/PaloAltoNetworks/Traps/bin/cortexxdruninstaller_tool"&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I used this command and for the uninstall password i tried Password1 as this is the default one but didn't work (Get the error this password is not correct) then i updated uninstall password within the agent configuration and global agent configuration but after all i was unable to delete it.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;LI-PRODUCT title="Cortex XDR" id="Cortex_XDR"&gt;&lt;/LI-PRODUCT&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 05 May 2026 10:15:33 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/cortex-xdr-discussions/macos-uninstall-password-reset/m-p/1253463#M9303</guid>
      <dc:creator>ThisizAmen</dc:creator>
      <dc:date>2026-05-05T10:15:33Z</dc:date>
    </item>
    <item>
      <title>Re: MacOS uninstall password reset</title>
      <link>https://live.paloaltonetworks.com/t5/cortex-xdr-discussions/macos-uninstall-password-reset/m-p/1253467#M9305</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://live.paloaltonetworks.com/t5/user/viewprofilepage/user-id/932715601"&gt;@ThisizAmen&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Greetings for the day.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;When a Cortex XDR agent becomes corrupted during an upgrade, it often loses communication with the management console. Because of this, any password changes you make in the console will not sync to the endpoint, and the agent will continue to require the password it last received or revert to the default&lt;/SPAN&gt;&lt;SPAN&gt;. Additionally, if the installation folder is damaged, the uninstaller itself may fail to validate credentials correctly&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P data-end="119" data-start="0"&gt;We recommend we try the following steps to reset the local configuration and attempt a removal with a default password.&lt;/P&gt;
&lt;P data-end="265" data-start="121"&gt;&lt;STRONG data-end="173" data-start="121"&gt;Method 1: Resetting Local Databases via Terminal&lt;/STRONG&gt;&lt;BR data-end="176" data-start="173" /&gt;This method attempts to clear the local settings so the agent reverts to a default state.&lt;/P&gt;
&lt;OL data-end="1054" data-start="267"&gt;
&lt;LI data-end="313" data-start="267" data-section-id="1xt7uxc"&gt;Open the Terminal application on the Mac.&lt;/LI&gt;
&lt;LI data-end="462" data-start="314" data-section-id="rrzfnf"&gt;Unload the agent daemon by running the following command:&lt;BR data-end="377" data-start="374" /&gt;&lt;CODE data-end="460" data-start="380"&gt;sudo launchctl unload /Library/LaunchDaemons/com.paloaltonetworks.trapsd.plist&lt;/CODE&gt;&lt;/LI&gt;
&lt;LI data-end="725" data-start="463" data-section-id="sa474c"&gt;Remove the local database files that store the configuration and password hashes:&lt;BR data-end="550" data-start="547" /&gt;&lt;CODE data-end="635" data-start="553"&gt;sudo rm /Library/Application\ Support/PaloAltoNetworks/Traps/db/agentsettings.db&lt;/CODE&gt;&lt;BR data-end="638" data-start="635" /&gt;&lt;CODE data-end="723" data-start="641"&gt;sudo rm /Library/Application\ Support/PaloAltoNetworks/Traps/db/cloudfrontend.db&lt;/CODE&gt;&lt;/LI&gt;
&lt;LI data-end="839" data-start="726" data-section-id="15y4zfd"&gt;Reload the agent daemon:&lt;BR data-end="756" data-start="753" /&gt;&lt;CODE data-end="837" data-start="759"&gt;sudo launchctl load /Library/LaunchDaemons/com.paloaltonetworks.trapsd.plist&lt;/CODE&gt;&lt;/LI&gt;
&lt;LI data-end="1054" data-start="840" data-section-id="os8imq"&gt;Attempt to run the uninstaller tool again. When it asks for a password, try using the default: Password1&lt;BR data-end="950" data-start="947" /&gt;&lt;CODE data-end="1052" data-start="953"&gt;sudo /Library/Application\ Support/PaloAltoNetworks/Traps/bin/cortexxdruninstaller_tool Password1&lt;/CODE&gt;&lt;/LI&gt;
&lt;/OL&gt;
&lt;P data-end="1224" data-start="1056"&gt;&lt;STRONG data-end="1102" data-start="1056"&gt;Method 2: Manual Removal via Recovery Mode&lt;/STRONG&gt;&lt;BR data-end="1105" data-start="1102" /&gt;If Method 1 fails (often due to Tamper Protection), we must bypass the agent's protection by using macOS Recovery Mode.&lt;/P&gt;
&lt;OL data-end="1864" data-start="1226"&gt;
&lt;LI data-end="1356" data-start="1226" data-section-id="zhmu11"&gt;Restart the Mac and boot into Recovery Mode (Hold Command+R for Intel Macs, or hold the Power button for Apple Silicon Macs).&lt;/LI&gt;
&lt;LI data-end="1404" data-start="1357" data-section-id="1986adj"&gt;Once in the Utilities menu, open Terminal.&lt;/LI&gt;
&lt;LI data-end="1656" data-start="1405" data-section-id="gi1ltm"&gt;You will need to delete the agent's service user configuration. Run the following command (replace [DISKNAME] with your drive name, usually Macintosh HD):&lt;BR data-end="1565" data-start="1562" /&gt;&lt;CODE data-end="1654" data-start="1568"&gt;rm -f /Volumes/[DISKNAME]/private/var/db/dslocal/nodes/Default/users/trapspanw.plist&lt;/CODE&gt;&lt;/LI&gt;
&lt;LI data-end="1705" data-start="1657" data-section-id="1mu43yx"&gt;Exit Terminal and restart the Mac normally.&lt;/LI&gt;
&lt;LI data-end="1864" data-start="1706" data-section-id="8gavrk"&gt;Once the Mac boots back up, open a standard Terminal and delete the service account from the system:&lt;BR data-end="1812" data-start="1809" /&gt;&lt;CODE data-end="1862" data-start="1815"&gt;sudo /usr/bin/dscl . -delete /Users/trapspanw&lt;/CODE&gt;&lt;/LI&gt;
&lt;/OL&gt;
&lt;P data-is-only-node="" data-is-last-node="" data-end="2061" data-start="1866"&gt;After completing these steps, the agent's core identity will be removed, allowing you to either run the uninstaller or manually delete the &lt;CODE data-end="2053" data-start="2005"&gt;/Library/Application Support/PaloAltoNetworks/&lt;/CODE&gt; folder.&lt;/P&gt;
&lt;P data-is-only-node="" data-is-last-node="" data-end="2061" data-start="1866"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you feel this has answered your query, please let us know by clicking&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;like&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;and on&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;"mark this as a Solution".&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;Thanks &amp;amp; Regards,&lt;BR /&gt;S. Subashkar Sekar&lt;/P&gt;
&lt;P data-is-only-node="" data-is-last-node="" data-end="2061" data-start="1866"&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 05 May 2026 13:48:36 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/cortex-xdr-discussions/macos-uninstall-password-reset/m-p/1253467#M9305</guid>
      <dc:creator>susekar</dc:creator>
      <dc:date>2026-05-05T13:48:36Z</dc:date>
    </item>
    <item>
      <title>Re: MacOS uninstall password reset</title>
      <link>https://live.paloaltonetworks.com/t5/cortex-xdr-discussions/macos-uninstall-password-reset/m-p/1253468#M9306</link>
      <description>&lt;P&gt;Thank you for your response&amp;nbsp;&lt;a href="https://live.paloaltonetworks.com/t5/user/viewprofilepage/user-id/241098"&gt;@susekar&lt;/a&gt;&amp;nbsp;!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Right now i am unable to test this let me try these tomorrow and i will let you&amp;nbsp; know if it's worked or not.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 05 May 2026 13:52:37 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/cortex-xdr-discussions/macos-uninstall-password-reset/m-p/1253468#M9306</guid>
      <dc:creator>ThisizAmen</dc:creator>
      <dc:date>2026-05-05T13:52:37Z</dc:date>
    </item>
    <item>
      <title>Re: MacOS uninstall password reset</title>
      <link>https://live.paloaltonetworks.com/t5/cortex-xdr-discussions/macos-uninstall-password-reset/m-p/1253470#M9308</link>
      <description>&lt;P&gt;Sure!!&amp;nbsp;&lt;a href="https://live.paloaltonetworks.com/t5/user/viewprofilepage/user-id/932715601"&gt;@ThisizAmen&lt;/a&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 05 May 2026 13:56:01 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/cortex-xdr-discussions/macos-uninstall-password-reset/m-p/1253470#M9308</guid>
      <dc:creator>susekar</dc:creator>
      <dc:date>2026-05-05T13:56:01Z</dc:date>
    </item>
  </channel>
</rss>

