Disable browser default password managers - Linux

This topic detail the steps to disable the default password manager in the Firefox and Chrome browsers.

Disabling the browser default password manager

Chrome

  1. Download the Google Chrome .deb or .rpm for Linux.
  2. Download the Chrome Enterprise Bundle.
  3. Unzip the Enterprise Bundle (GoogleChromeEnterpriseBundle64.zip or GoogleChromeEnterpriseBundle32.zip) and open the /Configuration folder.
  4. Make a copy of the master_preferences.json (in Chrome 91+, initial_preferences.json) and rename it managed_preferences.json.
  5. To disable Chrome's built-in password manager, add the following to managed_preferences.json
  6. "policies": {

    "PasswordManagerEnabled": false

    }

  7. If the following directories do not exist, create them:
  8. /etc/opt/chrome/policies

    /etc/opt/chrome/policies/managed

  9. Move managed_preferences.json into /etc/opt/chrome/policies/managed.
  10. As you will need to deploy these files to users machines, we recommend making sure only admins can write files in the /managed directory.
  11. chmod -R 755 /etc/opt/chrome/policies

  12. Additionally, we recommend admins should add the following to files to prevent modifications to the files themselves:
  13. chmod 644 /etc/opt/chrome/policies/managed/managed_preferences.json

  14. Using your preferred software distribution or MDM tool, deploy the following to users' machines:
    • Google Chrome Browser
    • /etc/opt/chrome/policies/managed/managed_preferences.json
  15. For more help, refer to Google's Chrome Browser Quick Start for Linux guide.

Firefox

  1. Download Firefox for Linux.
  2. Open a terminal and navigate to the directory your download has been saved to. For example:
  3. cd ~/Downloads

  4. Extract to contents of the downloaded file:
  5. tar xjf firefox-*.tar.bz2

  6. The following commands must be executed as root, or preceded by sudo.
  7. Move the uncompressed Firefox folder to /opt:
  8. mv firefox /opt

  9. Create a symlink to the Firefox executable:
  10. ln -s /opt/firefox /usr/local/bin/firefox

  11. Download a copy of the desktop file:
  12. wget https://raw.githubusercontent.com/mozilla/sumo-kb/main/install-firefox-linux/firefox.desktop -P /usr/local/share/applications

  13. To disable Firefox's built-in password manager, add the following to policies.json:
  14. "policies": {

    "PasswordManagerEnabled": false

    }

  15. Create the following directory if it does not already exist:
  16. mkdir /opt/firefox/distribution

  17. Modify the directory with the following:
  18. chmod 755 /opt/firefox/distribution

  19. Admins should add the following to files to prevent modifications to the files themselves:
  20. chmod 644 /opt/firefox/distribution/policies.json

  21. Using your preferred software distribution or MDM tool, deploy the following to users' machines:
    • Firefox Browser
    • /distribution/policies.json
  22. For more help, refer to Firefox's policies.json Overview or Policies README on Github.