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
- Download the Google Chrome .deb or .rpm for Linux.
- Download the Chrome Enterprise Bundle.
- Unzip the Enterprise Bundle (
GoogleChromeEnterpriseBundle64.zip
orGoogleChromeEnterpriseBundle32.zip
) and open the/Configuration
folder. - Make a copy of the master_preferences.json (in Chrome 91+, initial_preferences.json) and rename it managed_preferences.json.
- To disable Chrome's built-in password manager, add the following to managed_preferences.json
- If the following directories do not exist, create them:
- Move managed_preferences.json into
/etc/opt/chrome/policies/managed
. - As you will need to deploy these files to users machines, we recommend making sure only admins can write files in the /managed directory.
- Additionally, we recommend admins should add the following to files to prevent modifications to the files themselves:
- 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
"policies": {
"PasswordManagerEnabled": false
}
/etc/opt/chrome/policies
/etc/opt/chrome/policies/managed
chmod -R 755 /etc/opt/chrome/policies
chmod 644 /etc/opt/chrome/policies/managed/managed_preferences.json
For more help, refer to Google's Chrome Browser Quick Start for Linux guide.
Firefox
- Download Firefox for Linux.
- Open a terminal and navigate to the directory your download has been saved to. For example:
- Extract to contents of the downloaded file:
- The following commands must be executed as root, or preceded by sudo.
- Move the uncompressed Firefox folder to
/opt
: - Create a symlink to the Firefox executable:
- Download a copy of the desktop file:
- To disable Firefox's built-in password manager, add the following to policies.json:
- Create the following directory if it does not already exist:
- Modify the directory with the following:
- Admins should add the following to files to prevent modifications to the files themselves:
- Using your preferred software distribution or MDM tool, deploy the following to users' machines:
- Firefox Browser
/distribution/policies.json
cd ~/Downloads
tar xjf firefox-*.tar.bz2
mv firefox /opt
ln -s /opt/firefox /usr/local/bin/firefox
wget https://raw.githubusercontent.com/mozilla/sumo-kb/main/install-firefox-linux/firefox.desktop -P /usr/local/share/applications
"policies": {
"PasswordManagerEnabled": false
}
mkdir /opt/firefox/distribution
chmod 755 /opt/firefox/distribution
chmod 644 /opt/firefox/distribution/policies.json
For more help, refer to Firefox's policies.json Overview or Policies README on Github.