Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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.

  1. I enter schroot as root and add a new user 'Bob'.(Tried both adduser and useradd commands)
  2. The username 'Bob' lists up in /etc/passwd file and I can 'su' into the user 'Bob'. So far so good.
  3. When I log out of schroot, and re-enter schroot, the user 'Bob' has vanished!! There is no mention of Bob in /etc/passwd either.

How do I make the new user permanent?

share|improve this question

Oh well, I figured it out myself. schroot has a features called "sessions" that allows preservation of current system environment. I somehow thought that adding new users would not be a part of "environment".

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.