How to manage users and passwords in LXC containers?
Clash Royale CLAN TAG#URR8PPP
up vote
0
down vote
favorite
Example
- 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
lxc-console
. - 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.
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.
virtual-machine lxc
New contributor
add a comment |Â
up vote
0
down vote
favorite
Example
- 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
lxc-console
. - 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.
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.
virtual-machine lxc
New contributor
add a comment |Â
up vote
0
down vote
favorite
up vote
0
down vote
favorite
Example
- 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
lxc-console
. - 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.
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.
virtual-machine lxc
New contributor
Example
- 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
lxc-console
. - 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.
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.
virtual-machine lxc
virtual-machine lxc
New contributor
New contributor
New contributor
asked 3 mins ago
Honza Hejzl
1012
1012
New contributor
New contributor
add a comment |Â
add a comment |Â
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
Honza Hejzl is a new contributor. Be nice, and check out our Code of Conduct.
Honza Hejzl is a new contributor. Be nice, and check out our Code of Conduct.
Honza Hejzl is a new contributor. Be nice, and check out our Code of Conduct.
Honza Hejzl is a new contributor. Be nice, and check out our Code of Conduct.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f480515%2fhow-to-manage-users-and-passwords-in-lxc-containers%23new-answer', 'question_page');
);
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password