MozillaZine

modify Firefox Lock and Pref settings

User Help for Mozilla Firefox
Jaromas
 
Posts: 4
Joined: February 15th, 2018, 4:40 pm

Post Posted February 15th, 2018, 5:10 pm

Hi Guys,

Im trying to apply a setting to disable the remember sign on through lockpref however Im getting the error message "Configuration Error Failed to read the configuration file. Please contact your system administrator" when I launch Firefox.

On the C:\Program Files\Mozilla Firefox\defaults\pref I created local-settings.js and mozilla.cfg below are the details of the files.

local-settings.js:

//local settings to edit config!
pref("general.config.filename", "mozilla.cfg");
pref("general.config.obscure_value", 0);

mozilla.cfg:

//Changes for the default pref and lockpref
lockPref("signon.rememberSignons", false);


Can you let me know what the problem is? Any help would be appreciated.

aborix
 
Posts: 24
Joined: October 23rd, 2017, 1:23 pm

Post Posted February 16th, 2018, 10:16 am

Hi,

it works for me.

The mozilla.cfg has to be in the directory C:\Program Files\Mozilla Firefox.
Is it there?

dickvl

User avatar
 
Posts: 52373
Joined: July 18th, 2005, 3:25 am

Post Posted February 16th, 2018, 8:41 pm


Jaromas
 
Posts: 4
Joined: February 15th, 2018, 4:40 pm

Post Posted February 18th, 2018, 8:19 pm

aborix wrote:Hi,

it works for me.

The mozilla.cfg has to be in the directory C:\Program Files\Mozilla Firefox.
Is it there?



Nice..It works thank you very much

Jaromas
 
Posts: 4
Joined: February 15th, 2018, 4:40 pm

Post Posted February 18th, 2018, 8:24 pm

Do you guys know the exact LockPref for "Clear history when Firefox closes"? I want it checked and greyed out for users

Jaromas
 
Posts: 4
Joined: February 15th, 2018, 4:40 pm

Post Posted February 18th, 2018, 8:39 pm

oh looks like I found it. Its the sanitize line

//
lockPref("signon.rememberSignons", false);
lockPref("privacy.sanitize.sanitizeOnShutdown", true); // Always clear my private data when I close Firefox
lockPref("privacy.sanitize.timeSpan", 0); // 0 = Clear everything
lockPref("privacy.clearOnShutdown.history", true);
lockPref("privacy.clearOnShutdown.formdata", true);
lockPref("privacy.clearOnShutdown.passwords", true);
lockPref("privacy.clearOnShutdown.downloads", true);
lockPref("privacy.clearOnShutdown.cookies", true);
lockPref("privacy.clearOnShutdown.cache", true);
lockPref("privacy.clearOnShutdown.sessions", true);
lockPref("privacy.clearOnShutdown.offlineApps", true);
lockPref("privacy.clearOnShutdown.siteSettings", true);
lockPref("privacy.cpd.history", true);
lockPref("privacy.cpd.formdata", true);
lockPref("privacy.cpd.passwords", true);

Return to Firefox Support


Who is online

Users browsing this forum: costark, Google Adsense [Bot] and 8 guests