mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-02-03 16:43:37 +00:00
22 lines
664 B
Plaintext
22 lines
664 B
Plaintext
---
|
|
syntax: markdown
|
|
tags: [tldr, linux]
|
|
source: https://github.com/tldr-pages/tldr.git
|
|
---
|
|
# mkhomedir_helper
|
|
|
|
> Create the user's home directory after creating the user.
|
|
> More information: <https://manned.org/mkhomedir_helper>.
|
|
|
|
- Create a home directory for a user based on `/etc/skel` with umask 022:
|
|
|
|
`sudo mkhomedir_helper {{username}}`
|
|
|
|
- Create a home directory for a user based on `/etc/skel` with all permissions for owner (0) and read permission for group (3):
|
|
|
|
`sudo mkhomedir_helper {{username}} {{037}}`
|
|
|
|
- Create a home directory for a user based on a custom skeleton:
|
|
|
|
`sudo mkhomedir_helper {{username}} {{umask}} {{path/to/skeleton_directory}}`
|