본 사이트는 여러분의 사용자 경험을 개선하기 위해 유지 보수를 진행하는 동안 기능이 제한됩니다. 도움말로 문제가 해결되지 않고 질문을 하고 싶다면 Twitter의 @FirefoxSupport 및 Reddit의 /r/firefox 채널을 활용하세요.

Mozilla 도움말 검색

고객 지원 사기를 피하세요. 저희는 여러분께 절대로 전화를 걸거나 문자를 보내거나 개인 정보를 공유하도록 요청하지 않습니다. "악용 사례 신고"옵션을 사용하여 의심스러운 활동을 신고해 주세요.

자세히 살펴보기

policies.json not applying

  • 10 답장
  • 1 이 문제를 만남
  • 10 보기
  • 최종 답변자: cor-el

more options

Hi,

I am running Firefox 74.0 on Windows 10 (1709). I have created a policies.json file and saved this in `C:\Program Files\Mozilla Firefox\distribution`.

The settings within it are not being applied. I tried to put this same policies.json file in a new folder named `distribution` under Firefox's binary location in a Linux environment and the policies didn't apply there either.

File as below:

{

 "policies": {
   "Certificates": {
     "ImportEnterpriseRoots": true,
     "Install": [
       "cert.pem"
     ]
   },
   "Homepage": {
     "StartPage": "homepage",
     "URL": "http://<our homepage redacted>"
   },
   "Proxy": {
     "AutoLogin": false,
     "HTTPProxy": "http://<proxy server redacted>:<port redacted>",
     "Mode": "system",
     "SOCKSVersion": 4,
     "UseHTTPProxyForAllProtocols": true,
     "UseProxyForDNS": false
   }
 }

}

Any advice would be much appreciated.

Kind regards, Edan

Hi, I am running Firefox 74.0 on Windows 10 (1709). I have created a policies.json file and saved this in `C:\Program Files\Mozilla Firefox\distribution`. The settings within it are not being applied. I tried to put this same policies.json file in a new folder named `distribution` under Firefox's binary location in a Linux environment and the policies didn't apply there either. File as below: { "policies": { "Certificates": { "ImportEnterpriseRoots": true, "Install": [ "cert.pem" ] }, "Homepage": { "StartPage": "homepage", "URL": "http://<our homepage redacted>" }, "Proxy": { "AutoLogin": false, "HTTPProxy": "http://<proxy server redacted>:<port redacted>", "Mode": "system", "SOCKSVersion": 4, "UseHTTPProxyForAllProtocols": true, "UseProxyForDNS": false } } } Any advice would be much appreciated. Kind regards, Edan

모든 댓글 (10)

more options

What if you try the simplest part only --

{
  "policies": {
    "Homepage": {
      "StartPage": "homepage",
      "URL": "https://support.mozilla.org/"
    }
  }
}

-- then add other policies one at a time?

more options

Hi,

Thanks for your rpely.

I have tried the below config as I thought it was the simplest and easiest policy to test. This did not work either. :(

{

 "policies": {
   "BlockAboutConfig": true
 }

}

Regards

more options

Are you sure there isn't a hidden .txt file extension on policies.json? See:

https://www.bleepingcomputer.com/tutorials/how-to-show-file-extensions-in-windows/

Usually exiting and restarting Firefox will trigger a re-read of policies.json but you also could try a system restart in case Firefox is not unloading properly.

more options

Are you possibly using GPO ? I don't think that policies.json works when GPO is active.

Did you check the about:policies page ?

more options

Hi,

We are not managing Firefox via GPO. The file extension is definitely .json (see attached image).

Weird, huh?

Thanks, Edan

more options

Any chance Firefox is running from a different directory, i.e., not

C:\Program Files\Mozilla Firefox\firefox.exe

more options

Hi,

No, it's definitely from that location. Also, can't get it to work on my Linux Mint VM either.

Thank you, Edan

more options

Does Firefox validate the policies.json file and view the file with the JSON viewer if you open the file is a tab ?

Did you try to recreate policies.json in Linux using an installed plain text editor then this should work and you should see the policy on the about:policies#active page.

If you use the same file in Linux and in Windows and the file isn't working in either then this would suggest a problem with the file.

more options

Hi,

The JSON looks fine to me.

Thanks Edan

more options

Your System Details list shows the Enterprise Policy Generator extension.

This extension would create GPO rules and that makes policies.json not work. The error you see on the about:policies#errors page also indicate that other rules are being applied that fail for some reason.

You can inspect the Mozilla and Firefox keys with the Windows Registry Editor in HKEY_LOCAL_MACHINE and possibly in HKEY_CURRENT_USER with the Windows Registry Editor to see whether GPO policy rules are active.

  • HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Mozilla\Firefox\
  • HKEY_CURRENT_USER\SOFTWARE\Policies\Mozilla\Firefox\