Overview
The Linux Google Chrome Browser Policy lets administrators configure Incognito availability, third-party cookies, background operation, and eligible browser sign-in accounts on enrolled Linux devices.
Swif delivers this policy through its Linux agent. It supports company-owned and BYOD devices.
The current version replaces Enable Incognito Mode Only with Incognito Mode Availability, which provides three choices: Available, Disabled, and Forced. It also adds Restrict Sign-in to Pattern.
Important: Entering a nonempty sign-in pattern also configures Swif to require browser sign-in. Use Chrome 145 or later on Linux for this requirement, and test existing profiles before deployment.
Requirements
Requirement | Details |
Operating system | Linux |
Ownership | Company-owned or BYOD |
Management | Enrolled in Swif with the Linux agent installed and able to check in |
Browser | Google Chrome installed |
Forced browser sign-in | Chrome 145 or later on Linux |
Restricted accounts | Users have Google accounts matching the configured pattern |
Google lists Linux support for forced browser sign-in starting with Chrome 145. Earlier versions should not be relied on to enforce the sign-in requirement that Swif adds with a nonempty pattern. Google: BrowserSignin policy definition
The Swif definition does not specify a distribution or architecture. Test your Linux distribution and Chrome installation method before expanding deployment. Do not assume identical behavior in Chromium, other Chromium-based browsers, or alternative browser packages.
Policy Settings
These are the defaults shown in the Swif policy definition. A configured value is not necessarily equivalent to leaving the corresponding Chrome policy unmanaged.
Setting | Available values | Swif default |
Incognito Mode Availability | Available, Disabled, Forced | Available |
Block Third-Party Cookies | On or Off | Off ( |
Enable Background Mode | On or Off | Off ( |
Restrict Sign-in to Pattern | Regular expression | Empty |
Incognito Mode Availability
Controls whether users can open pages in Incognito mode.
Value | Behavior |
Available | Users can browse normally or open Incognito windows. |
Disabled | Users cannot open pages in Incognito mode, subject to any separately configured Chrome Incognito URL exceptions. |
Forced | Pages can be opened only in Incognito mode. |
Google's corresponding IncognitoModeAvailability values are 0, 1, and 2. Restart Chrome after changing this setting. Google: Incognito policy definition
Incognito limits browsing information retained locally after the session ends. It does not erase downloaded files or saved bookmarks, hide activity from websites or network operators, or replace a managed shared-device configuration. All Incognito windows must close to end the session. Google: Browse in Incognito mode
If required business or security extensions are part of your deployment, verify their behavior in Incognito before selecting Forced.
Block Third-Party Cookies
Controls cookies set by third-party elements embedded in a webpage.
Value | Behavior in regular browsing |
On | Blocks third-party cookies, subject to applicable cookie exceptions. |
Off | Allows third-party cookies and prevents users from changing this managed setting. |
Off is not an unmanaged setting. Applying false explicitly allows third-party cookies through this control.
This Chrome policy does not apply in Incognito mode, where third-party cookies are blocked and exceptions are handled at the site level. Google: Third-party cookie policy definition
Test embedded applications and authentication flows before enabling blocking. Some services depend on cross-site cookies. Chrome supports separate cookie exceptions, but this Swif policy does not expose an exception list. Google: Allow or restrict third-party cookies
Enable Background Mode
Controls whether Chrome's background mode is enabled.
Value | Behavior |
On | Allows Chrome to start a background process at OS sign-in and continue running after the last browser window closes. |
Off | Turns background mode off. |
When enforced, users cannot change the setting in Chrome. Background mode supports eligible background activity; it does not guarantee that every extension runs continuously. Google also allows users to close the background process from its system tray icon. Google: Background mode policy definition
Verify behavior in the Linux desktop environment used by your employees.
Restrict Sign-in to Pattern
Uses a regular expression to determine which Google accounts may become Chrome's primary browser account.
For example, to permit accounts in example.com, enter:
^[^@]+@example\.com$
Replace example.com with the intended Google account domain. The escaped dot matches a literal period, and the anchors match the complete address.
To permit two domains:
^[^@]+@(example\.com|subsidiary\.com)$
Enter the expression directly in the Swif field, without surrounding quotation marks. Use a single backslash before each literal dot as shown above.
Chrome rejects a primary browser account that does not match the expression. This setting targets the browser's primary Google account; it is not a general restriction on every account used inside websites. Google: Sign-in pattern policy definition
Swif also requires browser sign-in
When saving the policy, Swif handles the pattern as follows:
Pattern field | Swif behavior |
Nonempty | Saves the pattern and automatically sets |
Empty | Clears the automatically assigned |
There is no separate Browser Sign-in selector in this policy. A broad pattern such as .* still triggers the sign-in requirement because it is nonempty.
Forced sign-in can lock existing unsigned profiles until the required sign-in flow is completed. Google also changes the default Guest mode behavior to disabled. Browser sign-in does not by itself mean Chrome Sync is enabled. Google: BrowserSignin policy definition
Before deployment, confirm that users can authenticate with an allowed account. Clearing the pattern later does not guarantee that another management source will stop requiring sign-in; verify the effective policies after the change.
Create and Assign the Policy
In the Swif Admin Dashboard, go to Device Management > Policies.
Create a policy and select Linux Google Chrome Browser Policy.
Enter a descriptive policy name.
Choose the Incognito mode and cookie and background settings.
Enter a sign-in pattern only if you intend to restrict primary accounts and require browser sign-in.
Save the policy and assign it to a test device or group.
Allow the agent to check in and review the policy status in Swif.
Fully exit and reopen Chrome, then verify the settings and user experience.
Expand the assignment after testing succeeds.
If background mode is enabled, closing the last window may leave Chrome running. Fully exit Chrome when a restart is required.
Example: Require a Company Google Account
This example is for a company-owned device where users should browse with an approved primary account.
Setting | Example value |
Incognito Mode Availability | Disabled |
Block Third-Party Cookies | On, after application compatibility testing |
Enable Background Mode | Off |
Restrict Sign-in to Pattern |
|
Replace the domain and use Chrome 145 or later. Confirm that an approved account works and a nonmatching primary account is rejected. Test access to required applications as well as Chrome's sign-in prompt.
This configuration does not provide website account isolation or a complete data-loss-prevention solution.
BYOD Considerations
The policy supports BYOD, but its settings can affect personal browsing. Requiring a company primary account, disabling Incognito, or enforcing cookie behavior may change how employees use Chrome on their own devices.
Review the effective policy scope and explain the changes before assignment. Leave the sign-in pattern empty if this policy should not require browser sign-in. Verify other management sources as well.
Verify the Policy
After the device checks in and Chrome restarts:
Open
chrome://policy.Select Reload policies.
Review the values and status of the following policies.
Chrome policy | Expected value |
|
|
| Matches the configured On/Off value |
| Matches the configured On/Off value |
| Matches the entered expression when configured |
|
|
Check for errors, unsupported settings, and conflicting sources. Confirm the behavior in the affected user's browser, including Incognito access, account selection, and business application sign-in. Google's policy viewer identifies the source and scope of effective policies. Google: View current Chrome policies
Troubleshooting
Chrome does not change after the policy applies
Confirm that the latest configuration reached the device, Google Chrome is installed, and Chrome was fully restarted. Check chrome://policy for missing values or errors.
For standard Linux installations, mandatory Chrome policy files use:
/etc/opt/chrome/policies/managed/
Check for competing configuration tools or duplicate JSON settings. Google warns that conflicting values in multiple policy files have undefined behavior. Google: Set policies on Linux
Alternative packages may use different paths or access restrictions. Verify the browser installation method rather than assuming all packages consume the same host configuration.
Users unexpectedly have to sign in
A nonempty Restrict Sign-in to Pattern also enables forced sign-in in Swif. Review the field, including broad expressions such as .*.
If forced sign-in is no longer intended, clear the field, save the policy, let the device check in, and restart Chrome. Verify that the effective BrowserSignin requirement is gone.
The pattern appears, but sign-in is not required
Check the Chrome version. Linux support for BrowserSignin = 2 starts with Chrome 145. Confirm the effective value and restart Chrome after correcting the configuration.
An approved account is rejected
Check the complete email address against the pattern. Confirm the domain spelling, escaped dots, and anchors, and remove accidental quotes or extra backslashes. Test every intended domain before broad deployment.
Personal accounts still work on websites
The pattern controls Chrome's primary browser account. It does not constitute a universal block on personal website accounts. Use the relevant application or identity controls for that requirement.
Embedded applications or sign-in flows stop working
Check whether third-party cookie blocking caused the issue. Test the affected flow in regular browsing and review other cookie policies. Remember that Incognito handles third-party cookies separately.
Chrome keeps running after its windows close
This is expected when background mode is enabled. If it is disabled but processes remain, review the effective policy and any desktop startup configuration or other software launching Chrome.
Required extensions do not work in Forced Incognito mode
Test whether the extension supports and is allowed to run in Incognito. Do not assume its normal-window behavior carries over. Use Available or Disabled if your validated workflow requires regular browsing.
Update or Remove the Policy
Edit the settings or remove the assignment, allow the device to check in, and fully restart Chrome. Verify the resulting values in chrome://policy.
Removing this Swif assignment does not guarantee restoration of every previous preference. Other platform or cloud policies may remain effective.