You are not logged in.
Trying to configure Firefox using a policies.json file. I am not a programmer but I was able to use the information at https://mozilla.github.io/policy-templates/ to create a /usr/lib/firefox/distribution/policies.json file.
From what I can see the policies.json file is not being applied. I found a multidude of posts on the subject and they all say the same thing. I tried /etc/firefox/policies/policies.json and they did not work either.
Do I need to change the syntax of my policies.json file?
/user/lib/firefox/distribution/policies.json
{
"policies": {
"AllowFileSelectionDialogs": true
}
}
{
"policies": {
"AppAutoUpdate": true
}
}
{
"policies": {
"BackgroundAppUpdate": true
}
}
{
"policies": {
"AutofillAddressEnabled": false
}
}
{
"policies": {
"AutofillCreditCardEnabled": false
}
}
{
"policies": {
"DefaultDownloadDirectory": "${home}/Downloads"
}
}
{
"policies": {
"DisableDefaultBrowserAgent": true
}
}
{
"policies": {
"DontCheckDefaultBrowser": true
}
}
{
"policies": {
"DisableFirefoxStudies": true
}
}
{
"policies": {
"DisableFormHistory": true
}
}
{
"policies": {
"DisablePocket": true
}
}
{
"policies": {
"DisableProfileImport": true
}
}
{
"policies": {
"DisableProfileRefresh": true
}
}
{
"policies": {
"DisplayBookmarksToolbar": "never"
}
}
{
"policies": {
"DisplayMenuBar": "default-off"
}
}
{
"policies": {
"EnableTrackingProtection": {
"Value": true,
"Locked": false,
"Cryptomining": true,
"Fingerprinting": true,
}
}
}
{
"policies": {
"EncryptedMediaExtensions": {
"Enabled": false,
"Locked": false
}
}
}
{
"policies": {
"FirefoxHome": {
"Search": true,
"TopSites": false,
"SponsoredTopSites": false,
"Highlights": false,
"Pocket": false,
"SponsoredPocket": false,
"Snippets": false,
"Locked": false
}
}
}
{
"policies": {
"FirefoxSuggest": {
"WebSuggestions": true,
"SponsoredSuggestions": false,
"ImproveSuggest": true,
"Locked": false
}
}
}
{
"policies": {
"HardwareAcceleration": true
}
}
{
"policies": {
"HttpsOnlyMode": "enabled"
}
}
{
"policies": {
"LegacySameSiteCookieBehaviorEnabled": true
}
{
"policies": {
"NetworkPrediction": true
}
{
"policies": {
"OfferToSaveLoginsDefault": true
}
}
{
"policies": {
"OverrideFirstRunPage": ""
}
}
{
"policies": {
"OverridePostUpdatePage": ""
}
}
{
"policies": {
"PasswordManagerEnabled": true
}
}
{
"policies": {
"PDFjs": {
"Enabled": true,
"EnablePermissions": false
}
}
}
{
"policies": {
"PictureInPicture": {
"Enabled": true,
"Locked": false
}
}
}
{
"policies": {
"SearchBar": "separate"
}
}
{
"policies": {
"SearchSuggestEnabled": true
}
}
{
"policies": {
"ShowHomeButton": true
}
}
{
"policies": {
"TranslateEnabled": true
}
}
{
"policies": {
"UserMessaging": {
"ExtensionRecommendations": true,
"FeatureRecommendations": true,
"UrlbarInterventions": true,
"SkipOnboarding": true,
"MoreFromMozilla": true,
"Locked": false
}
}
}
{
"policies": {
"UseSystemPrintDialog": true
}
}
{
"policies": {
"DisableTelemetry": true
}
}
Last edited by lenhuppe (2024-09-02 15:29:51)
"I'm suspicious of people who don't like dogs, but I trust a dog when it doesn't like a person." -- Bill Murray
Offline
Found my wy to https://github.com/mozilla/policy-templ … icies.json and corrected the syntax of my policies.json file.
However the new policies were not applied until I rebooted, and that was part of the problem.
/user/lib/firefox/distribution/policies.json
{
"policies": {
"AppAutoUpdate": true,
"BackgroundAppUpdate": true,
"BlockAboutAddons": false,
"BlockAboutConfig": false,
"BlockAboutProfiles": false,
"BlockAboutSupport": false,
"Cookies": {
"Behavior": "reject-tracker-and-partition-foreign",
"BehaviorPrivateBrowsing": "reject-tracker-and-partition-foreign"
},
"DefaultDownloadDirectory": "${home}/Downloads",
"DisableBuiltinPDFViewer": false,
"DisableDeveloperTools": false,
"DisableEncryptedClientHello": false,
"DisableFeedbackCommands": false,
"DisableFirefoxAccounts": false,
"DisableFirefoxScreenshots": false,
"DisableFirefoxStudies": false,
"DisableForgetButton": true,
"DisableFormHistory": true,
"DisableMasterPasswordCreation": false,
"DisablePasswordReveal": false,
"DisablePocket": true,
"DisablePrivateBrowsing": false,
"DisableProfileImport": true,
"DisableProfileRefresh": true,
"DisableSafeMode": false,
"DisableSecurityBypass": {
"InvalidCertificate": false,
"SafeBrowsing": false
},
"DisableSetDesktopBackground": false,
"DisableSystemAddonUpdate": false,
"DisableTelemetry": false,
"DisplayBookmarksToolbar": "never",
"DisplayMenuBar": "default-off",
"DontCheckDefaultBrowser": false,
"DownloadDirectory": "${home}/Downloads",
"EnableTrackingProtection": {
"Value": true,
"Locked": true,
"Cryptomining": true,
"Fingerprinting": true,
"EmailTracking": true,
"Exceptions": [""]
},
"EncryptedMediaExtensions": {
"Enabled": true,
"Locked": false
},
"ExtensionUpdate": true,
"FirefoxHome": {
"Search": true,
"TopSites": false,
"SponsoredTopSites": false,
"Highlights": false,
"Pocket": false,
"SponsoredPocket": false,
"Snippets": false,
"Locked": false
},
"FirefoxSuggest": {
"WebSuggestions": true,
"SponsoredSuggestions": true,
"ImproveSuggest": true,
"Locked": false
},
"HardwareAcceleration": true,
"Homepage": {
"URL": "",
"Locked": false,
"StartPage": "homepage"
},
"HttpsOnlyMode": "enabled",
"LegacySameSiteCookieBehaviorEnabled": true,
"NetworkPrediction": true,
"NewTabPage": true,
"OfferToSaveLogins": true,
"OfferToSaveLoginsDefault": true,
"OverrideFirstRunPage": "",
"OverridePostUpdatePage": "",
"PasswordManagerEnabled": true,
"PDFjs": {
"Enabled": true,
"EnablePermissions": false
},
"PictureInPicture": {
"Enabled": true,
"Locked": false
},
"PopupBlocking": {
"Allow": [""],
"Default": true,
"Locked": false
},
"Preferences": {
"accessibility.force_disabled": {
"Value": 1,
"Status": "default"
},
"browser.tabs.warnOnClose": {
"Value": false,
"Status": "locked"
}
},
"PrimaryPassword": false,
"PrintingEnabled": true,
"PromptForDownloadLocation": false,
"RequestedLocales": "en-US",
"SanitizeOnShutdown": {
"Cache": false,
"Cookies": false,
"Downloads": false,
"FormData": true,
"History": false,
"Sessions": false,
"SiteSettings": false,
"OfflineApps": false,
"Locked": false
},
"SearchSuggestEnabled": true,
"ShowHomeButton": true,
"TranslateEnabled": true,
"UserMessaging": {
"ExtensionRecommendations": true,
"FeatureRecommendations": true,
"UrlbarInterventions": true,
"SkipOnboarding": false,
"MoreFromMozilla": true,
"Locked": false
},
"UseSystemPrintDialog": true
}
}
Last edited by lenhuppe (2024-09-02 19:56:37)
"I'm suspicious of people who don't like dogs, but I trust a dog when it doesn't like a person." -- Bill Murray
Offline