3

I want to specify the home directory when creating a user, currently i'm using centos 6.7

Is it possible?

Jonathan Solorzano
  • 201
  • 1
  • 3
  • 12

1 Answers1

7

You can do this to simply add a user:

useradd -m -d /home/newuser newuser

Or this to add a user by asking you some questions

adduser --home /home/newuser2 newuser2

Ryan Babchishin
  • 6,160
  • 2
  • 16
  • 36