When a Linux policy stops applying to a device, Swif undoes the changes it made, so the device doesn't keep stricter rules than you intended. The device goes back, as closely as possible, to how it was before the policy, or to its distribution's defaults.
Requires the Swif agent for Linux, version 1.330.0 or later.
When Swif cleans up
When | What Swif does |
You delete a policy, or remove it from a device | Undoes that policy's changes on the device |
A device leaves a device group, for example because it no longer matches a smart group's conditions, or you exclude it | Undoes the group's policies' changes only if the group's Auto-Remove Group Policies is on. Otherwise, the policies stay on the device, and nothing is undone. See Remove policies automatically when devices leave. |
You unenroll the device | Undoes the changes of every Linux policy on it, and removes package repositories Swif added |
The device must be online to receive the change.
What each policy restores
Swif has tested cleanup with these policies:
Policy | Distributions | What's restored |
Password Policy | Ubuntu, Fedora, Manjaro | The device's password rules, such as complexity, expiry, and sign-in rules, go back to how they were, or the distribution's defaults. The PAM configuration files the policy changed are restored too. |
Screen Saver Policy | Ubuntu (GNOME), Linux Mint (Cinnamon, MATE), Xubuntu (Xfce) | Screen lock and screen saver settings, such as the lock timeout, and locking on suspend, go back to how they were, or the defaults |
Software Update Policy | Ubuntu, and other APT-based distributions | Package repositories the policy added are removed |
For example, if a Software Update Policy added Microsoft's VS Code repository, Swif created /etc/apt/sources.list.d/swif-packages_microsoft_com.list. When you delete the policy, Swif removes that file. It doesn't leave entries in other repository files.
Restoring is as close as possible. If something else changed the same settings while the policy applied, the result may differ from the original.
Check a device's settings
Policy | Where to check |
Password Policy | The device's PAM configuration, or try changing a user's password |
Screen Saver Policy | Ubuntu: Settings > Privacy & Security > Screen Lock. Linux Mint: Screensaver. Xubuntu: Xfce Screensaver. |
Software Update Policy | The files in |
Troubleshooting
A policy's rules still apply after I deleted it
Check the device's Swif agent is version 1.330.0 or later. Earlier agents don't clean up.
Check the device is online. It receives the change when it next connects.
If the device left a device group, check that the group's Auto-Remove Group Policies is on. Otherwise, the group's policies stay on the device.
Check that another policy, or tool, doesn't set the same rules. Another Swif policy still assigned to the device keeps applying its own settings.
A repository is still listed after I deleted a Software Update Policy
Check the file's name. Swif only removes repository files it created, named swif-packages_….list. Repositories added another way stay.