Търсене в помощните статии

Избягвайте измамите при поддръжката. Никога няма да ви помолим да се обадите или изпратите SMS на телефонен номер или да споделите лична информация. Моля, докладвайте подозрителна активност на "Докладване за злоупотреба".

Научете повече

how to set preferences for all users?

  • 3 отговора
  • 1 има този проблем
  • 2 изгледи
  • Последен отговор от Mark Schmidt

more options

I'm working with a windows CITRIX server and I need to disable the 'Remember passwords for sites' preference for all the users on the server. How do you do this for any user launching firefox on the server?

I'm working with a windows CITRIX server and I need to disable the 'Remember passwords for sites' preference for all the users on the server. How do you do this for any user launching firefox on the server?

Всички отговори (3)

more options

You can lock the signon.rememberSignons pref to false via the mozilla.cfg file. lockPref("signon.rememberSignons", false);


You canuse a mozilla.cfg file in the Firefox program folder to lock prefs or specify new (default) values.

Place a local-settings.js file 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

See:

more options

I added the local-settings.js and mozilla.cfg files to the C:\Program Files\Mozilla Firefox\defaults\pref directory and the remember passwords option still isn't disabled.

contents of my local-settings.js: pref("general.config.filename", "mozilla.cfg"); pref("general.config.obscure_value", 0);

contents of my mozilla.cfg: lockPref("signon.rememberSignons", false);

more options

The first line of mozilla.cfg never gets read. This line needs to be just two forward slashes.

The contents of the file should look like:

   //
   lockPref("signon.rememberSignons", false);

This file should be in C:\Program Files\Mozilla Firefox\

Only local-settings.js should be in C:\Program Files\Mozilla Firefox\defaults\pref\

If making these changes still does not apply the settings, refer to http://kb.mozillazine.org/Locking_preferences for detailed instructions.