X
Tap here to go to the mobile version of the site.

Support Forum

How to permanantly disable the save password feature in firefox?

Posted

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.

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.

Chosen solution

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:

Read this answer in context 1
Quote

Additional System Details

Installed Plug-ins

  • Next Generation Java Plug-in 10.55.2 for Mozilla browsers
  • Shockwave Flash 25.0 r0

Application

  • User Agent: Mozilla/5.0 (X11; Linux x86_64; rv:47.0) Gecko/20100101 Firefox/47.0

More Information

FredMcD
  • Top 10 Contributor
3039 solutions 40980 answers

Helpful Reply

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.

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. '''
Was this helpful to you? 9
Quote
John99
  • Moderator
971 solutions 13138 answers

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.

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.
Was this helpful to you?
Quote

Question owner

@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.

@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.
Was this helpful to you?
Quote
cor-el
  • Top 10 Contributor
  • Moderator
15347 solutions 139140 answers

Chosen Solution

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:

You use the mozilla.cfg file to lock signon.rememberSignons to false. <pre>// lockPref("signon.rememberSignons", false);</pre> ---- You can use the <u>mozilla.cfg</u> file in the Firefox program folder to set or lock preferences and run privileged JavaScript code. A <u>local-settings.js</u> 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: *https://developer.mozilla.org/en-US/Firefox/Enterprise_deployment See also: *http://kb.mozillazine.org/Locking_preferences *http://mike.kaply.com/2012/03/16/customizing-firefox-autoconfig-files/
Was this helpful to you? 1
Quote

Question owner

@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?

@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?
Was this helpful to you?
Quote
cor-el
  • Top 10 Contributor
  • Moderator
15347 solutions 139140 answers

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");
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 <u>Firefox installation folder</u> 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");
Was this helpful to you? 0
Quote

Question owner

@Cor-el Thank you. I had to lookup for the folder, finally I found it. Thanks a ton.

@Cor-el Thank you. I had to lookup for the folder, finally I found it. Thanks a ton.
Was this helpful to you? 0
Quote
Ask a question

You must log in to your account to reply to posts. Please start a new question, if you do not have an account yet.