Juju run runs as root, not 'ubuntu'
Bug #1628593 reported by
Aaron Bentley
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Canonical Juju |
Fix Released
|
High
|
John A Meinel | ||
2.0 |
Won't Fix
|
Undecided
|
Unassigned |
Bug Description
The docs say:
If the target is a machine, the command is run as the "ubuntu" user on
the remote machine.
But actually the command is run as root:
$ juju run --machine 0 whoami
root
Although the ubuntu user can sudo, this is still surprising and potentially dangerous behaviour.
The release notes do not show this change in behaviour. If root is intended, the command help and release notes should be updated.
Changed in juju: | |
assignee: | nobody → Alexis Bruemmer (alexis-bruemmer) |
milestone: | 2.0-rc2 → 2.0.0 |
tags: | added: jujuq |
tags: |
added: jujuqa removed: jujuq |
Changed in juju: | |
milestone: | 2.0.0 → 2.0.1 |
Changed in juju: | |
milestone: | 2.0.1 → none |
Changed in juju: | |
status: | Fix Committed → Fix Released |
summary: |
- Juju run runs as root, not 'ubuntu' + Juju run as root, not 'ubuntu' |
summary: |
- Juju run as root, not 'ubuntu' + Juju runs as root, not 'ubuntu' |
To post a comment you must log in.
Juju run used to use ssh from the controller machine and would connect as the ubuntu user using the juju system identity ssh key.
The way run worked was changed during the 2.0 cycle to go through the actions mechanism. Obviously when it runs now it is running as the user running the machine agent.