Adding user to chroot environment
Posted
by
Neo
on Super User
See other posts from Super User
or by Neo
Published on 2011-01-30T11:54:53Z
Indexed on
2011/02/01
15:28 UTC
Read the original article
Hit count: 284
I've created a chroot system in my Ubuntu using schroot and debrootstrap, based on minimal ubuntu. However whenever I can't seem to add a new user into this chroot environment. Here is what happens.
- I enter schroot as root and add a new user.(Tried both adduser and useradd commands)
- The username lists up in /etc/passwd file and I can 'su' into the new user. So far so good.
- When I log out of schroot, and re-enter schroot, the user I created has vanished!! There is no mention of that user in /etc/passwd either.
How do I make the new user permanent?
© Super User or respective owner