modify Firefox Lock and Pref settings

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

modify Firefox Lock and Pref settings

Post by Jaromas »

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: 29
Joined: October 23rd, 2017, 1:23 pm

Re: modify Firefox Lock and Pref settings

Post by aborix »

Hi,

it works for me.

The mozilla.cfg has to be in the directory C:\Program Files\Mozilla Firefox.
Is it there?
User avatar
dickvl
Posts: 54161
Joined: July 18th, 2005, 3:25 am

Re: modify Firefox Lock and Pref settings

Post by dickvl »

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

Re: modify Firefox Lock and Pref settings

Post by Jaromas »

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

Re: modify Firefox Lock and Pref settings

Post by Jaromas »

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

Re: modify Firefox Lock and Pref settings

Post by Jaromas »

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);
Post Reply