Windows 10 will reach EOS (end of support) on October 14, 2025. For more information, see this article.

Prohledat stránky podpory

Vyhněte se podvodům. Za účelem poskytnutí podpory vás nikdy nežádáme, abyste zavolali nebo poslali SMS na nějaké telefonní číslo nebo abyste sdělili své osobní údaje. Jakékoliv podezřelé chování nám prosím nahlaste pomocí odkazu „Nahlásit zneužití“.

Zjistit více

Applying security settings to all user-accounts of one PC including add-ons

  • 10 odpovědí
  • 0 má tento problém
  • 33 zobrazení
  • Poslední odpověď od Mike Kaply

more options

Hi all,

For quite a while I'm working together with others on a voluntary base (nobody gets money) as members of a computer-club, a charitable NGO and NPO (in German: gemeinnütziger Verein) for seniors in order to bring them closer to the use of digital devices and media. It's not only teaching, but administrating the hard- and software as well.

I can remember that it was possible in former versions of Firefox to include at least a script into "defaults->prefs". I think it was user.js (not sure) in the installation folder to define common preferences to be fixed, like proxi settings. It always worked well, preventing non-privileged users from making any unwanted changes. As a I found out there must have been a very similar way to include add-ons (like uBlock Origin).

Unfortunately all content I found was older than about 10 years. When trying setting up Firefox as it is now, my test system didn't care about anything I've tried.

I'm talking about > 50 Windows-PC having in average 3 user profiles each (for teaching more than 400 members). We are amateurs regarding PC administration, except some network ex-professionals. "Baking" installation media including our needs, as I already found on Mozilla's pages, seems to be beyond our abilities as well as distributing a fitting profile (we don't have a MS-server), not speaking about Group Policies.

Is there any usable guideline for people like us? Today, each FF-installation looks different and I would like to unify this as easy as possible.

Hi all, For quite a while I'm working together with others on a voluntary base (nobody gets money) as members of a computer-club, a charitable NGO and NPO (in German: gemeinnütziger Verein) for seniors in order to bring them closer to the use of digital devices and media. It's not only teaching, but administrating the hard- and software as well. I can remember that it was possible in former versions of Firefox to include at least a script into "defaults->prefs". I think it was user.js (not sure) in the installation folder to define common preferences to be fixed, like proxi settings. It always worked well, preventing non-privileged users from making any unwanted changes. As a I found out there must have been a very similar way to include add-ons (like uBlock Origin). Unfortunately all content I found was older than about 10 years. When trying setting up Firefox as it is now, my test system didn't care about anything I've tried. I'm talking about > 50 Windows-PC having in average 3 user profiles each (for teaching more than 400 members). We are amateurs regarding PC administration, except some network ex-professionals. "Baking" installation media including our needs, as I already found on Mozilla's pages, seems to be beyond our abilities as well as distributing a fitting profile (we don't have a MS-server), not speaking about Group Policies. Is there any usable guideline for people like us? Today, each FF-installation looks different and I would like to unify this as easy as possible.

Všechny odpovědi (10)

more options

I would look at our enterprise policy:

https://mozilla.github.io/policy-templates/

It should allow you to do what you need.

It's just a JSON file you can put on the machines, so it should be easy to do.

Pomohla vám tato odpověď?

more options

Thanks Mike,

I tumbled over this page before, but didn't find scripting examples that really looked like templates. Therefore I didn't bookmark it. "Easy" is always relative. It seems to be quite a lot of reading and trial and error in front of me. I'm going to try it... As I wrote, we are amateurs - including myself. I'm uncertain whether I should mark it as "solved". Helpful? Of course.

Pomohla vám tato odpověď?

more options

The issue with a user.js file is that it can set starting values (overriding previous session preference changes) but it cannot lock values against changes or push extension installations. So Enterprise Policy definitely will be more useful.

Do you have a list of what you need to set? That would make it easier to discuss specific policy details.

uBlock Origin is included in the example ExtensionSettings policy, but also a few others (each separated by commas): https://mozilla.github.io/policy-templates/#extensionsettings

Pomohla vám tato odpověď?

more options

I'm more than happy to help you and help create the files you need.

If you can tell me exactly what you need to do, I can help you.

Pomohla vám tato odpověď?

more options

What I could do is giving you the listing of a pretty new profile containing the preferred settings as listed in the prefs.js. Unfortunately it looks quite comprehensive. A shorter version below.

Some examples, that Mozilla possibly doesn't like too much in some cases:

  • We don't want any sponsor content now the news on FF's starting page.
  • The preferred search should be done either via Startpage or Ecosia.
  • No 3rd-party cookies, tracking, known or assumed fingerprinters, but allowing FF to avoid problems with known pages
  • Telling web sites not to sell personal data (even if this doesn't help)
  • No saved Passwords (probably possible when protected with an Admin-PW?)
  • No saved payment methods
  • No history saving (delete when leaving)
  • No feedback nor telemetry (data acquisition by FF/Mozilla
  • Blocking dangerous content / web sites

Addons: "uBlock Origin" and "I still don't care about cookies" (Guus)

That's it. Having the right template, I could probably help myself.

Actually, you've offered your hand and I took your arm... Sorry

Pomohla vám tato odpověď?

more options

That's what I'm here for. I'm out for the next week, but I'll get you something when I get back.

This is all pretty straightforward

Pomohla vám tato odpověď?

more options

Hello Mike,

I'm still hoping for your help. Thanks in advance.

Pomohla vám tato odpověď?

more options

{

   "policies": {
       "AutofillAddressEnabled": false,
       "AutofillCreditCardEnabled": false,
       "DisableTelemetry": true,
       "EnableTrackingProtection": {
         "Category": "strict"
       },
       "ExtensionSettings": {
         "uBlock0@raymondhill.net": {
           "installation_mode": "force_installed",
           "install_url": "https://addons.mozilla.org/firefox/downloads/latest/ublock-origin/latest.xpi"
         },
         "idcac-pub@guus.ninja": {
           "installation_mode": "force_installed",
           "install_url": "https://addons.mozilla.org/firefox/downloads/latest/istilldontcareaboutcookies/latest.xpi"
         }
       },
       "FirefoxHome": {
           "SponsoredStories": false,
           "SponsoredTiles": false
       },
       "OfferToSaveLogins": false,
       "PasswordManagerEnabled": false,
       "SanitizeOnShutdown": {
           "Cache": true,
           "Cookies": true,
           "FormData": true,
           "History": true,
           "Sessions": true,
           "SiteSettings": true,
           "Locked": true
       },
       "SearchEngines": {
           "Default": "Ecosia"
       }
   }

}

I think this should cover what you need. You create a directory called "distribution" where Firefox is installed and put this there as "policies.json"

Now that you have the basics, you can go through

https://mozilla.github.io/policy-templates/

and tweak things that you want.

Pomohla vám tato odpověď?

more options

Thanks Mike, that looks great and even not overwhelming as far as complexity is concerned. I'll try it first as it is - but...

Of course I got questions when reading the code:
  • What happens when I would try replacing "Ecosia" by "Startpage" or "Qwant"? Both search engines are not in FF's default list, but are following a strict privacy policy.

I found a nice add-on ("Query AMO Addon ID") on GitHub that was helpful when asking for .xpi URLs, but failed when trying to find entries in about:config leading to any web search that had been installed by right clicking the related active URL (e.g. https://startpage.com). I'm not looking for an installed search engine.

The only variable I identified was part of this string: https://addons.mozilla.org/%LOCALE%/firefox/search-engines/ but returned all and everything.

Pomohla vám tato odpověď?

more options

You can use the SearchEngines Add policy here:

https://mozilla.github.io/policy-templates/#searchengines--add

You really only need three things, the name, an icon, and a search URL.

The icon is pretty much always https://websitename/favicon.ico

And you can get the search URL by just doing a search on the site. On Qwant it's easy:

https://www.qwant.com/?q={searchTerms}&t=web

For Startpage it's

https://www.startpage.com/sp/search?query={searchTerms}

Pomohla vám tato odpověď?

Položit dotaz

Pro přidání odpovědi se musíte přihlásit ke svému účtu. Pokud dosud nemáte účet, položte nový dotaz.