Give a user a home directory on Linux server

pts.
Tags:
Home Directory
Linux
Linux administration
Linux applications
Linux servers
How can i give each of my users a home directory on a Linux servers

Answer Wiki

Thanks. We'll let you know when a new response is added.

You can use the command
useradd name
replace name by the name of the user
for example jsmith (john smith)

this will automatically create a directory for him located under
/home/jsmith

you can read up the man pages of useradd
man useradd

Assignin a password with the command
passwd name

This applies to Red Hat

Discuss This Question: 2  Replies

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
  • petkoa
    useradd will not create home dir by default - use useradd -m BR
    3,120 pointsBadges:
    report
  • carlosdl
    On Debian and its derivatives, you might want to use adduser instead, which is a friendlier front end to useradd.
    69,920 pointsBadges:
    report

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Thanks! We'll email you when relevant content is added and updated.

Following