[Bug 1513698] [NEW] $HOME variable set incorrectly inside container

Serge Hallyn 1513698 at bugs.launchpad.net
Fri Nov 6 05:28:28 UTC 2015


Right, this is mentioned in the manpage.  You can force environment
to be cleared by passing --clear-env.  Actually setting HOME to what
a login shell would do would require lxc-attach to make assumptions
about the container.  However you can

lxc-attach -n trusty-vimprobable --clear-env -- su - root

to get su (inside the container) to do the things you want.

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to lxc in Ubuntu.
https://bugs.launchpad.net/bugs/1513698

Title:
  $HOME variable set incorrectly inside container

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/lxc/+bug/1513698/+subscriptions



More information about the Ubuntu-server-bugs mailing list