Origami

Docs › Organisations

Linux policy

The file that sets the managed policy on Linux, which Origami honours only when root alone can change it.

1 min read

How it works

  1. Write the keys you want to set in a file named policy.json:
{
  "GoEnabled": false,
  "UpdatesEnabled": false
}
  1. Put it in /etc/origami, owned by root and writable by root alone, in a folder kept the same way:
sudo install -d -o root -g root -m 755 /etc/origami
sudo install -o root -g root -m 644 policy.json /etc/origami/policy.json
  1. To check it took effect, run stat -c '%U %a %F' /etc/origami /etc/origami/policy.json: both are root's, the file a regular file. Then open Settings › Origami+ in Origami: the Origami Go switch is locked.

Good to know

  • A link, a file or folder that isn't root's, or one that group or others can write is ignored.
  • A file Origami can't read, or can't read as a policy, turns both off. That includes a key that isn't true or false.
  • Keys Origami doesn't know are left alone, for later versions.

Related