How to permanantly disable the save password feature in firefox?
I don't want my users to save their password on the browser. Is there a way to disable password manager or gray-out the remember password box (without selecting never remembering history option) so that users are not able to save their passwords.
Wubrane rozrisanje
You use the mozilla.cfg file to lock signon.rememberSignons to false.
// lockPref("signon.rememberSignons", false);
You can use the mozilla.cfg file in the Firefox program folder to set or lock preferences and run privileged JavaScript code.
A local-settings.js file needs to be placed in the "defaults/pref" folder where also the channel-prefs.js file is located to specify using mozilla.cfg.
pref("general.config.filename", "mozilla.cfg"); pref("general.config.obscure_value", 0);
These functions can be used in the mozilla.cfg file:
defaultPref(); // set new default value pref(); // set pref, allow changes in current session lockPref(); // lock pref, disallow changes
The mozilla.cfg and local-settings.js files need to start with a comment line (//).
See Configuration:
See also:
- http://kb.mozillazine.org/Locking_preferences
- http://mike.kaply.com/2012/03/16/customizing-firefox-autoconfig-files/
Wšě wotmołwy (7)
Type about:preferences#security<enter> in the address bar.
Under Logins, Turn off Remember Logins. To check the passwords you have listed, press Saved Logins.
What do you mean by your users. Are you supplying computers for office use, or deploying Firefox within a network for instance ?
I often say when people ask about disabling Firefox features what else are you doing to improve security and for instance prevent people from for instance
- Using a new Firefox profile.
- Installing an additional browser
- Using a browser or even a complete OS from external media.
If your question relates to controlling children then they probably know more about computers than you do. They probably have their own devices or access to other devices and other networks, so again you may not be able to win by trying to restrict Firefox features.
Not too sure if you are trying to prevent use of passwords, or prevent them being saved, if so maybe that is because you realise saving passwords on a browser even with a Firefox master password is probably not as secure as many people imagine.
@john99
What i actually want to do is prevent people from saving their passwords in their browsers. Is it possible to create a policy or something.
Wubrane rozrisanje
You use the mozilla.cfg file to lock signon.rememberSignons to false.
// lockPref("signon.rememberSignons", false);
You can use the mozilla.cfg file in the Firefox program folder to set or lock preferences and run privileged JavaScript code.
A local-settings.js file needs to be placed in the "defaults/pref" folder where also the channel-prefs.js file is located to specify using mozilla.cfg.
pref("general.config.filename", "mozilla.cfg"); pref("general.config.obscure_value", 0);
These functions can be used in the mozilla.cfg file:
defaultPref(); // set new default value pref(); // set pref, allow changes in current session lockPref(); // lock pref, disallow changes
The mozilla.cfg and local-settings.js files need to start with a comment line (//).
See Configuration:
See also:
@Cor-el Your solution works for windows. But i'm unable to do the same for linux. I can't find defaults/pref directory. Do i need to create one?
I'm on Linux myself and I'm using mozilla.cfg without any problems to change some default pref settings.
You should have the defaults/pref folder in the Firefox installation folder if you have a version from the Mozilla server since that is the location of channel-prefs.js (stores app.update.channel). A Firefox from the repositories may not have this folder and file. You will have to see if it works if you create the defaults/pref folder and the local-settings.js in it.
I even have a file in it that sets a dictionary path
- pref("spellchecker.dictionary_path", "/usr/share/myspell");
@Cor-el Thank you. I had to lookup for the folder, finally I found it. Thanks a ton.