3

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

Is it possible?

1 Answers1

8

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