0 pts.
 Give a user a home directory on Linux server
How can i give each of my users a home directory on a Linux servers

Software/Hardware used:
ASKED: October 28, 2010  12:34 PM
UPDATED: November 2, 2010  4:07 PM

Answer Wiki:
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
Last Wiki Answer Submitted:  October 28, 2010  2:20 pm  by  Xseedos   45 pts.
All Answer Wiki Contributors:  Xseedos   45 pts.
To see all answers submitted to the Answer Wiki: View Answer History.


Discuss This Question:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _


 

useradd will not create home dir by default – use useradd -m

BR

 3,120 pts.

 

On Debian and its derivatives, you might want to use adduser instead, which is a friendlier front end to useradd.

 63,535 pts.