Skip to content

Intune for Linux: Root-context scripts never execute #223

@dtjn

Description

@dtjn

We’ve observed that shell scripts assigned to Linux devices via Intune and configured to run in root context do not execute, even though:

The script is correctly assigned to a group
The script is marked to run as root
The device is properly enrolled and syncing

However, in practice:

The script never runs
No logs are generated
No changes are applied
Intune portal indicates failure without any comments, or on the device nothing happens, even if the script only contains one line to write a simple log file for testing purposes. Only user-context scripts appear to execute reliably.

This behavior has been confirmed across multiple devices running Ubuntu 24.04 with the latest Intune agent (1.2508.17).

Expected Behavior
Scripts assigned to device groups and configured to run as root should.

Is root-context script execution for Linux devices officially supported, you mention e.g. using this for the example script to deploy chrome: https://github.com/microsoft/shell-intune-samples/tree/master/Linux/Apps/Google%20Chrome. I tried to deploy this without any changes according to readme, but this shows the same behaviour.

Environment

OS: Ubuntu 24.04
Intune Agent: 1.2508.17
Device is enrolled and compliant

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions