My issue is that i created a set of policy rules under /etc/brave/policies/managed/GroupPolicy.json
with the following text :
{
"IncognitoModeAvailability": false,
"TorDisabled": true,
"AllowDeletingBrowserHistory": false
}
The result should be that rules are applied to my browser. But that’s not the case :
How can this issue be reproduced?
- Go to
/etc/brave/policies/managed/
- Create a file with a name finishing by
.json
- Write a valid json code like the one I provided
- Reload polycies in
brave://policy/
Expected result:
Policies applied in order to block private browsing, tor and history deletion.
Brave Version :
1.70.123 Chromium: 129.0.6668.89 (Build officiel) (64 bits)
Additional Information:
I’m on Linux Mint 22 (x86_64). Brave is downloaded from the source provided on brave website (no snap or flatpak)
@Mattches just gonna tag you so can see it.
@1m70Deter,
While I’m not super well versed with Group Policy on Linux, I do believe you still need to use the binary values for true/false rather than the boolean variables. So for TorDisabled
, try changing it to:
"TorDisabled": 1
Thank you for your answer. I tried it by replacing the file content with the following :
{
"IncognitoModeAvailability": 0,
"TorDisabled": 1,
"AllowDeletingBrowserHistory": 0
}
But nothing happened. If it helps, i have the following output in the log of policies :
[VERBOSE] Policy refresh starting
[VERBOSE] Found mandatory policy file: /etc/brave/policies/managed/GroupPolicy.json
[VERBOSE] Skipping recommended platform policies because no policy file was found at: /etc/brave/policies/recommended
[VERBOSE] Retrieving map of policy values
[VERBOSE] Client has user policies; getting precedence-related policies for Chrome
[VERBOSE] Retrieving map of policy values
[VERBOSE] Retrieving map of policy values
[VERBOSE] user status: { }
1 Like
Please guys, help me with this problem. It’s for overcoming my p0rn addiction.
So, I switched to fedora and it works. However, I had to edit a little bit the file. If any one ever need it, here is the final file :
{
"IncognitoEnabled": false,
"TorDisabled": true,
"AllowDeletingBrowserHistory": false
}
Thank you anyway for your answers.