Skip to content

Set user parameter for qubes.VMRootShell policy in README#4

Closed
bcduggan wants to merge 1 commit into
QubesOS:mainfrom
bcduggan:vmrootshell-user
Closed

Set user parameter for qubes.VMRootShell policy in README#4
bcduggan wants to merge 1 commit into
QubesOS:mainfrom
bcduggan:vmrootshell-user

Conversation

@bcduggan

@bcduggan bcduggan commented Apr 19, 2025

Copy link
Copy Markdown

According to qubes.VMRootShell:

# This is the same as qubes.VMShell. The actual difference is in qrexec policy,
# which contains 'user=root' option.

Without the user parameter on a policy, dom0 executes the RPC as the default user:

mgmtvm$ echo "whoami" | qvm-run --pass-io --service workvm qubes.VMRootShell
user

This change updates the documentation to make qubes.VMRootShell behave as intended:

mgmtvm$ echo "whoami" | qvm-run --pass-io --service workvm qubes.VMRootShell
root

Closes QubesOS/qubes-issues#9939

According to qubes.VMRootShell:

```bash
# This is the same as qubes.VMShell. The actual difference is in qrexec policy,
# which contains 'user=root' option.
```

Without the user parameter on a policy, dom0 executes the RPC as the
default user:

```console
mgmtvm$ echo "whoami" | qvm-run --pass-io --service workvm qubes.VMRootShell
user
```

This change updates the documentation to make qubes.VMRootShell behave
as intended:

```console
mgmtvm$ echo "whoami" | qvm-run --pass-io --service workvm qubes.VMRootShell
root
```
@bcduggan

bcduggan commented May 7, 2025

Copy link
Copy Markdown
Author

Closing in favor of PR #8

@bcduggan bcduggan closed this May 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Qubes-Ansible - Policy in README does not allow running qubes.VMRootShell as root from management qube on target qubes

1 participant