[2.8-rc2] $HOME points to /home/ubuntu in a debug-hooks session

Bug #1879554 reported by Dmitrii Shcherbakov
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Canonical Juju
Triaged
Low
Unassigned

Bug Description

juju run --unit octavia/1 'echo ~'
/root

juju run --unit octavia/1 'printenv HOME'
1

# debug-hooks
root@juju-c5590f-1:/var/lib/juju/agents/unit-octavia-1/charm# echo ~
/home/ubuntu

root@juju-c5590f-1:/var/lib/juju/agents/unit-octavia-1/charm# printenv HOME
/home/ubuntu

root@juju-c5590f-1:/var/lib/juju/agents/unit-octavia-1/charm# echo $UID
0

This sometimes has surprising side-effects during charm debugging.

Tim Penhey (thumper)
Changed in juju:
status: New → Triaged
importance: Undecided → Medium
tags: added: debug-code debug-hooks
Revision history for this message
Canonical Juju QA Bot (juju-qa-bot) wrote :

This bug has not been updated in 2 years, so we're marking it Low importance. If you believe this is incorrect, please update the importance.

Changed in juju:
importance: Medium → Low
tags: added: expirebugs-bot
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.