How do I create a user directory in Linux?

thanhthao

New member
How do I create a user directory in Linux?
Answer
You will need to create the users directory manually. This requires three steps: Create directory in compliance to /etc/passwd , usually there will be already a /home/login entry.
And finally set right permissions:
  1. mkdir /home/YOU.
  2. cd /home/YOU.
  3. cp -r /etc/skel/. .
  4. chown -R YOU.YOURGROUP .
  5. chmod -R go=u,go-w .
  6. chmod go= .
 

Tìm kiếm

Back
Top