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:
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:
- mkdir /home/YOU.
- cd /home/YOU.
- cp -r /etc/skel/. .
- chown -R YOU.YOURGROUP .
- chmod -R go=u,go-w .
- chmod go= .