Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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 stackoverflow.com 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

1 Answer 1

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 )

GROUP=100 HOME=/home INACTIVE=-1 EXPIRE= SHELL=/bin/bash SKEL=/etc/skel CREATE_MAIL_SPOOL=no

share|improve this answer

Your Answer

 
discard

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