Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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 changed the default of users with useradd –D –b /home/packers –s /bin/bash –g packers this command.

But I want to change them to original default. Which command do I need to use?

share|improve this question

migrated from Nov 29 '12 at 5:25

This question came from our site for professional and enthusiast programmers.

now all user which will created has base directory "/home/packers". but i want to change that default – leon Nov 29 '12 at 3:08

It sounds like you want to reset the default configuration to what it was before you entered that command.

Try this to reset the defaults you changed: useradd -D -b /home -g users

Usually you shouldn't change the defaults (-D) unless you have a good reason too. Also, if you want an interactive way of adding users, try adduser

Here is all the default values incase you need them: ( it says 100 for group, that is the ID for users )


share|improve this answer

Your Answer


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