- Container created (no matter if Ubuntu or Debian, the problem is the same) and running.
- New non-privileged user created inside the container (
# useradd -m newUser -p newPass108).
- It is possible to switch the identity with
$ sudo su newUser(Ubuntu) or
# su newUser(Debian).
- The environment's behavior after that switch becomes very strange (it is not possible to use Bash as usually, loops don't work, completion doesn't work, command history doesn't work, etc.).
- It is not possible to log in as the new user via
- If I change the privileged user's password, it seems to work (change confirmed) but later it is not possible to use it, the default password persists.
Tested on Debian Stretch and Ubuntu 18.04 server inside VirtualBox (not full clones of master installations).
Is there a special idea or workflow I need to stick to when managing the container? I would expect the container should work as a bit specific whole new machine.
I suspect I am missing something regarding the whole LXC idea.