Join the AMA (Ask Me Anything) with the Firefox leadership team to celebrate Firefox 20th anniversary and discuss Firefox’s future on Mozilla Connect. Mark your calendar on Thursday, November 14, 18:00 - 20:00 UTC!

Ky sajt do të funksionojë me kufizime, teksa bëjmë mirëmbajtjen e tij për të përmirësuar punën tuaj. Nëse një artikull nuk e zgjidh problemin tuaj dhe dëshironi të bëni një pyetje, kemi bashkësinë tonë të asistencës, e gatshme për t’ju ndihmuar, te @FirefoxSupport në Twitter dhe/r/firefox në Reddit.

Kërkoni te Asistenca

Shmangni karremëzime gjoja asistence. S’do t’ju kërkojmë kurrë të bëni një thirrje apo të dërgoni tekst te një numër telefoni, apo të na jepni të dhëna personale. Ju lutemi, raportoni veprimtari të dyshimtë duke përdorur mundësinë “Raportoni Abuzim”.

Mësoni Më Tepër

Locking preferences in Redhat's firefox.

  • 3 përgjigje
  • 2 e kanë hasur këtë problem
  • 1 parje
  • Përgjigjja më e re nga redbranchwarrior

more options

So I have to set some settings system wide for the Firefox browser in order to comply with a STIG that I'm required to do. I've followed the example at http://kb.mozillazine.org/Locking_preferences without any luck, namely I edited the /usr/lib64/firefox/default/preferences/all-redhat.js file and added:

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

and then created the mozilla.cfg in the same directory, chmod it to 644 and inserted the following:

// lockPref("browser.startup.homepage", "https://www.us.army.mil/suite/page/429668"); lockPref("browser.download.dir", "N:"); lockPref("browser.download.downloadDir", "N:"); lockPref("app.update.enabled", false); lockPref("extensions.update.enabled", false); lockPref("browser.shell.checkDefaultBrowser", false); lockPref("browser.search.update", false); lockPref("browser.formfill.enable", false); lockPref("signon.prefillForms", false); lockPref("dom.disable_open_during_load", true); lockPref("dom.disable_window_move_resize", true); lockPref("dom.event.contextmenu.enabled", false); lockPref("dom.disable_window_status_change", true); lockPref("dom.disable_window_flip", true); lockPref("dom.disable_window_open_feature.status", true); lockPref("security.warn_leaving_secure", true); lockPref("privacy.sanitize.promptOnSanitize", false); lockPref("privacy.sanitize.sanitizeOnShutdown", true); lockPref("security.default_personal_cert", "Ask Every Time"); lockPref("signon.rememberSignons", false); lockPref("xpinstall.whitelist.required", true); lockPref(“network.protocol-handler.external.shell”,false); lockPref(“security.enable_ssl3”,true); lockPref(“security.enable_ssl2”,false); lockPref(“security.enable_tls”,true); lockPref("plugin.disable_full_page_plugin_for_types", "application/pdf,application/doc,application/xls,application/bat,application/ppt,application/mdb,application/mde,application/fdf,application/xfdf,application/lsl,application/lso,application/lss,application/iqy,application/rqy,application/xlk,application/pot,application/pps,application/dot,application/wbk,application/ps,application/eps,application/wch,application/wcm,application/wbi,application/wb1,application/wb3,application/rtf,application/wch,application/wcm,application/ad,application/adp,application/xlt, application/dos, application/wks"); lockPref("privacy.item.history", false)

Initially, when starting, firefox would complain that my config file could not be read, and that I should contact my admin. So I did, and I had no answer for myself.

Reading forums brought me to the conclusion that I should reinstall firefox. So I did. Same issue. I then deleted all of the mozilla and firefox associated files, and then reinstalled.

As to be expected, the third time was the charm. No errors. Except one. It never loaded, nor locked my preferences.

Thank you for any help.

So I have to set some settings system wide for the Firefox browser in order to comply with a STIG that I'm required to do. I've followed the example at http://kb.mozillazine.org/Locking_preferences without any luck, namely I edited the /usr/lib64/firefox/default/preferences/all-redhat.js file and added: pref("general.config.obscure_value", 0); pref("general.config.filename", "mozilla.cfg"); and then created the mozilla.cfg in the same directory, chmod it to 644 and inserted the following: // lockPref("browser.startup.homepage", "https://www.us.army.mil/suite/page/429668"); lockPref("browser.download.dir", "N:"); lockPref("browser.download.downloadDir", "N:"); lockPref("app.update.enabled", false); lockPref("extensions.update.enabled", false); lockPref("browser.shell.checkDefaultBrowser", false); lockPref("browser.search.update", false); lockPref("browser.formfill.enable", false); lockPref("signon.prefillForms", false); lockPref("dom.disable_open_during_load", true); lockPref("dom.disable_window_move_resize", true); lockPref("dom.event.contextmenu.enabled", false); lockPref("dom.disable_window_status_change", true); lockPref("dom.disable_window_flip", true); lockPref("dom.disable_window_open_feature.status", true); lockPref("security.warn_leaving_secure", true); lockPref("privacy.sanitize.promptOnSanitize", false); lockPref("privacy.sanitize.sanitizeOnShutdown", true); lockPref("security.default_personal_cert", "Ask Every Time"); lockPref("signon.rememberSignons", false); lockPref("xpinstall.whitelist.required", true); lockPref(“network.protocol-handler.external.shell”,false); lockPref(“security.enable_ssl3”,true); lockPref(“security.enable_ssl2”,false); lockPref(“security.enable_tls”,true); lockPref("plugin.disable_full_page_plugin_for_types", "application/pdf,application/doc,application/xls,application/bat,application/ppt,application/mdb,application/mde,application/fdf,application/xfdf,application/lsl,application/lso,application/lss,application/iqy,application/rqy,application/xlk,application/pot,application/pps,application/dot,application/wbk,application/ps,application/eps,application/wch,application/wcm,application/wbi,application/wb1,application/wb3,application/rtf,application/wch,application/wcm,application/ad,application/adp,application/xlt, application/dos, application/wks"); lockPref("privacy.item.history", false) Initially, when starting, firefox would complain that my config file could not be read, and that I should contact my admin. So I did, and I had no answer for myself. Reading forums brought me to the conclusion that I should reinstall firefox. So I did. Same issue. I then deleted all of the mozilla and firefox associated files, and then reinstalled. As to be expected, the third time was the charm. No errors. Except one. It never loaded, nor locked my preferences. Thank you for any help.

Zgjidhje e zgjedhur

Ok. I figured out my problem. I was using ” instead of ". Who knew there were different double quotes . . . Thanks for the help!!!!

Lexojeni këtë përgjigje brenda kontekstit 👍 0

Krejt Përgjigjet (3)

more options

Hi, i think something is wrong with the mozilla.cfg, what is the installation directory ?

try put the mozilla.cfg in /usr/lib64/firefox/

don't chmod it to 644

any luck ?

thank you

more options

No luck. I've tried starting from the commandline to see if there are any errors and Firefox starts just fine. I'm still seeing nothing in the about:config as being locked.

more options

Zgjidhja e Zgjedhur

Ok. I figured out my problem. I was using ” instead of ". Who knew there were different double quotes . . . Thanks for the help!!!!