We use a set of Google tools named policy-test-tool and fake_dmserver (see the Chromium docs on them for more information) to serve custom policies to a user account on login. We hardcode the user policies to be as unrestrictive as possible, but you can modify them if you like (see mod-files/usr/bin/mosh-upol.sh).
Tip
If you place a policy file in ./mod-files/root/ during building, it will have your policy file in the Modmium image itself!
- Install and boot modmium in verified (see ./installation.md.)
- Obtain your enterprise's policy.json (see obtaining your policy file after install)
- Open VT2 once you've finished enrollment, a good place to enter is the "Enrollment is complete." screen.
DO NOT SIGN IN. IF YOU DID AND WANT TO EDIT USER POLICIES, POWERWASH AND TRY AGAIN. - Navigate to
Edit User Policies. - Select
Run Policy Editorand enter your enterprise email when prompted. - When the fake device management server starts, go back to VT1 and sign in with the same email.
- After you're logged in, return to VT2 and hit Ctrl+C
- Only ever run
Reinstallif you want to edit policies for a different account, or update them for the same one with a new file.
- Enroll into your enterprise and login to your enterprise account
- Open
chrome://policyand export your policy file to your Downloads folder, do not rename the file, it must be in the root of yourDownloadsfolder.
Note
If chrome://policy is blocked, instead of downloading the policy file, just press Extract policies from current account, and skip to step 5.
- Open VT-2 and navigate to
Edit User Policies - Select
Grab policy.json from Downloads - Your policy file is now saved, it should show the menu that says
Install, if it doesn't, check that you actually placed your policy file into downloads, and that the name is the same as it was originally. - Remove the user account completely (or powerwash if needed) and continue with the rest of the steps below!