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

Support Forum

Is there a way to password protect the access options pannel, in particular the Connection Settings?

Posted

Is there a way that access to the Options panel can be locked by an administrator. In particular I would like to block a user from being able to change the proxy server settings in Tools > Options > Advanced > Network > Connection Settings. I would like to be able to lock the settings to (Use system proxy settings). The OS is windows 7 standard user account controlled by a windows small business server 2008.

Is there a way that access to the Options panel can be locked by an administrator. In particular I would like to block a user from being able to change the proxy server settings in Tools > Options > Advanced > Network > Connection Settings. I would like to be able to lock the settings to (Use system proxy settings). The OS is windows 7 standard user account controlled by a windows small business server 2008.

Chosen solution

If you get the Failed to read error then that means that there is a problem with the mozilla.cfg file or Firefox doesn't find the file as you may have created mozilla.cfg.txt in case you saved the file as a text file (check the type in the Properties via the right-click context menu to see if it is a CFG file).
The mozilla.cfg file should be in the main Firefox program folder where also the firefox.exe file is located.

You should have at least two lines in mozilla.cfg.
The first line should always be a comment (//) because this line is skipped.
The value of the pref depends on what you want to use for the connection settings, for use system proxy settings use 5.

//
lockPref("network.proxy.type", 5);
Read this answer in context 2

Additional System Details

Application

  • User Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; Trident/7.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; .NET4.0C; .NET4.0E; rv:11.0) like Gecko

More Information

cor-el
  • Top 10 Contributor
  • Moderator
12751 solutions 117168 answers

You can lock the related network.http prefs to prevent users from changing the settings.
That will only make it impossible to change the prefs on the about:config page directly.


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

Place a file local-settings.js in the defaults\pref folder where you also find the file channel-prefs.js to specify using mozilla.cfg.

pref("general.config.filename", "mozilla.cfg");

See:

These functions can be used in the mozilla.cfg file:

defaultPref();  // set new default value
pref();         // set pref, but allow changes in current session
lockPref();     // lock pref, disallow changes
You can lock the related network.http prefs to prevent users from changing the settings.<br /> That will only make it impossible to change the prefs on the <b>about:config</b> page directly. *http://kb.mozillazine.org/network.proxy.type *http://kb.mozillazine.org/network.proxy.%28protocol%29 *http://kb.mozillazine.org/network.proxy.%28protocol%29_port ---- Use a mozilla.cfg file in the Firefox program folder to lock prefs or specify new (default) values. Place a file local-settings.js in the defaults\pref folder where you also find the file channel-prefs.js to specify using mozilla.cfg. pref("general.config.filename", "mozilla.cfg"); See: *http://kb.mozillazine.org/Locking_preferences These functions can be used in the mozilla.cfg file: defaultPref(); // set new default value pref(); // set pref, but allow changes in current session lockPref(); // lock pref, disallow changes

Question owner

Hi Thanks for the reply, however I have still not managed to lock the settings: Tools-Options-Advanced-Network-Connection Settings - and lock the settings to “use system proxy settings”. I have created a file: local-settings.js – local-settings.js is located in the same folder as the channel-prefs.js – There is one line of code in the file: local-settings.js - pref("general.config.filename", "mozilla.cfg"); However if I include "general.config.filename", in that file I receive popup an error on loading Firefox – Configuration Error – “Failed to read the configuration file”. If I remove - "general.config.filename", the program loads. Please advise. Also should the content of the mozilla.cfg file contain this code // lockPref("network.proxy.type", 0); Or should it be // lockPref("network.proxy.type", 5); or should it be - lockPref(); // lock pref, disallow changes. Many thanks Dave

Hi Thanks for the reply, however I have still not managed to lock the settings: Tools-Options-Advanced-Network-Connection Settings - and lock the settings to “use system proxy settings”. I have created a file: local-settings.js – local-settings.js is located in the same folder as the channel-prefs.js – There is one line of code in the file: local-settings.js - pref("general.config.filename", "mozilla.cfg"); However if I include "general.config.filename", in that file I receive popup an error on loading Firefox – Configuration Error – “Failed to read the configuration file”. If I remove - "general.config.filename", the program loads. Please advise. Also should the content of the mozilla.cfg file contain this code // lockPref("network.proxy.type", 0); Or should it be // lockPref("network.proxy.type", 5); or should it be - lockPref(); // lock pref, disallow changes. Many thanks Dave
cor-el
  • Top 10 Contributor
  • Moderator
12751 solutions 117168 answers

Chosen Solution

If you get the Failed to read error then that means that there is a problem with the mozilla.cfg file or Firefox doesn't find the file as you may have created mozilla.cfg.txt in case you saved the file as a text file (check the type in the Properties via the right-click context menu to see if it is a CFG file).
The mozilla.cfg file should be in the main Firefox program folder where also the firefox.exe file is located.

You should have at least two lines in mozilla.cfg.
The first line should always be a comment (//) because this line is skipped.
The value of the pref depends on what you want to use for the connection settings, for use system proxy settings use 5.

//
lockPref("network.proxy.type", 5);
If you get the Failed to read error then that means that there is a problem with the mozilla.cfg file or Firefox doesn't find the file as you may have created mozilla.cfg.txt in case you saved the file as a text file (check the type in the Properties via the right-click context menu to see if it is a CFG file).<br /> The mozilla.cfg file should be in the main Firefox program folder where also the firefox.exe file is located. You should have at least two lines in mozilla.cfg.<br /> The first line should always be a comment (//) because this line is skipped.<br /> The value of the pref depends on what you want to use for the connection settings, for use system proxy settings use 5. <pre><nowiki>// lockPref("network.proxy.type", 5);</nowiki></pre>

Question owner

many thanks, cor-el that worked.

I ended up with this content in the local-settings.js file:

pref("general.config.obscure_value", 0); // only needed if you do not want to obscure the content with ROT-13

pref("general.config.filename", "mozilla.cfg");
many thanks, cor-el that worked. I ended up with this content in the local-settings.js file: pref("general.config.obscure_value", 0); // only needed if you do not want to obscure the content with ROT-13 pref("general.config.filename", "mozilla.cfg");