> ## Documentation Index
> Fetch the complete documentation index at: https://docs.getprimo.com/llms.txt
> Use this file to discover all available pages before exploring further.

# User account control

> Set how employees elevate on their devices: the Windows elevation prompts and Admin Approval Mode, and how sudo authenticates on macOS and Linux.

The User account control control sets how employees get administrator rights on their devices. On Windows, choose the elevation prompts and how Admin Approval Mode works. On macOS and Linux, set how often sudo asks for a password, the umask of the commands it runs and, on a Mac, who can change system-wide settings.

## Platform compatibility

| macOS | Windows | Linux | iOS / iPadOS | Android |
| - | - | - | - | - |
| ✅ | ✅ | ✅ | | |

Requires macOS 15 or later. On Linux, requires Debian 12, Ubuntu 22.04, RHEL 8 or Fedora 43, or later.

## Set up the control

**1. Add a configuration**

Go to **MDM** > **Controls** and open **User account control**. Select the platform tab, then click **Add configuration**.

**2. Configure the settings**

Set each setting you want to enforce. See the settings below. Configure at least one setting.

**3. Select targeting**

Choose which devices to apply the configuration to: all devices on that platform, specific device groups, or a custom target. Click **Activate** to deploy the configuration. **Save** keeps it inactive.

A setting left empty or on **Not configured** isn't written: the device keeps its own setting.

## Settings

> [tab] macOS
>
> | Section | Setting | Options |
> | - | - | - |
> | **Sudo** | **Authentication timeout (minutes)** | 0 to 1440. 0 asks for the password every time. |
> | | **One authentication for** | **Each terminal**, **Each parent process** |
> | | **Umask** | An octal umask, such as `077` |
> | | **Log the commands sudo allows** | **On**, **Off** |
> | **System Settings** | **Ask an administrator password for each system-wide setting** | **On**, **Off** |
>
> * **One authentication for** sets how far a sudo password reaches: **Each terminal** asks again in each new terminal window, **Each parent process** in each new process that runs sudo.
> * **Umask** sets the permissions of the files created by the commands sudo runs.
> * **Ask an administrator password for each system-wide setting** set to **On** makes **System Settings** ask for an administrator password each time someone changes a system-wide setting, instead of once for all of them.

> [tab] Windows
>
> | Section | Setting | Options |
> | - | - | - |
> | **Elevation prompts** | **Prompt for administrators** | **Ask for consent for apps outside Windows**, **Ask for consent on the secure desktop**, **Ask for credentials on the secure desktop**, **Ask for consent**, **Ask for credentials**, **Elevate without asking** |
> | | **Prompt for standard users** | **Ask for credentials**, **Ask for credentials on the secure desktop**, **Deny automatically** |
> | **Admin Approval Mode** | **Run administrators in Admin Approval Mode** | **On**, **Off** |
> | | **Admin Approval Mode for the built-in Administrator** | **On**, **Off** |
> | | **Prompt on the secure desktop** | **On**, **Off** |
> | | **Detect installers and prompt** | **On**, **Off** |
> | | **Elevate only signed executables** | **On**, **Off** |
> | | **Elevate accessibility apps only from secure locations** | **On**, **Off** |
> | | **Accessibility apps can prompt without the secure desktop** | **On**, **Off** |
> | | **Redirect failed writes to per-user locations** | **On**, **Off** |
> | **Credentials and network** | **Enter credentials on a trusted path** | **On**, **Off** |
> | | **Restrict local accounts on network sign-in** | **On**, **Off** |
>
> * **Deny automatically** refuses every elevation request of a standard user, without a prompt.
> * **Run administrators in Admin Approval Mode** set to **Off** turns User Account Control off on the device, and takes effect after a restart.

> [tab] Linux
>
> Under **Sudo**:
>
> | Setting | Options |
> | - | - |
> | **Authentication timeout (minutes)** | 0 to 1440. 0 asks for the password every time. |
> | **Keep commands from starting other commands** | **On**, **Off** |
> | **Run commands in a pseudo-terminal** | **On**, **Off** |
> | **Umask** | An octal umask, such as `077` |
>
> **Keep commands from starting other commands** set to **On** stops a command run with sudo from launching another program, such as a shell from an editor.

## How it works

> [tab] macOS
>
> Primo runs a script that writes the sudo settings to a file of its own in `/etc/sudoers.d`. The script checks the file before installing it, and takes it back if sudo stops working.
>
> For **Ask an administrator password for each system-wide setting**, the script changes the System Settings rights of the Mac's authorization database. It saves the Mac's own rights first and puts them back when you turn the setting off or remove the configuration.
>
> When you remove the configuration, Primo deletes the sudo file and the Mac goes back to its own sudo settings.

> [tab] Windows
>
> Primo applies the settings through Windows security policies for the whole device.
>
> When you remove the configuration, Windows keeps the values the configuration set, until another configuration or a local policy changes them.

> [tab] Linux
>
> Primo runs a script that writes the sudo settings to a file of its own in `/etc/sudoers.d`. The script checks the file before installing it, and takes it back if sudo stops working.
>
> Ubuntu 25.10 and later run sudo-rs, a new implementation of sudo. The file only holds settings that both sudo and sudo-rs understand.
>
> When you remove the configuration, Primo deletes the sudo file and the device goes back to its own sudo settings.

## Modify or remove the control

Open the control from **MDM > Controls** to edit, deactivate or replace a configuration.

## Related articles

* [Controls overview](https://docs.getprimo.com/mdm/policies/overview.md)
* [Manage admin accounts](https://docs.getprimo.com/mdm/policies/manage-admin-accounts.md)
* [Admin password rotation](https://docs.getprimo.com/mdm/policies/admin-password-rotation.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.