mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-07-23 07:55:32 +02:00
mkhomedir_helper: add page (#10571)
* mkhomedir_helper: add page --------- Co-authored-by: pixel <pixel+github@chrissx.de> Co-authored-by: Lena <126529524+acuteenvy@users.noreply.github.com>
This commit is contained in:
parent
92205fee9f
commit
14490b66d8
1 changed files with 16 additions and 0 deletions
16
pages/linux/mkhomedir_helper.md
Normal file
16
pages/linux/mkhomedir_helper.md
Normal file
|
@ -0,0 +1,16 @@
|
|||
# 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}}`
|
Loading…
Add table
Reference in a new issue