Files
tldr/pages.zh/linux/mkhomedir_helper.md

16 lines
521 B
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# mkhomedir_helper
> 在创建用户后创建用户的主目录。
> 更多信息:<https://manned.org/mkhomedir_helper>。
- 根据 `/etc/skel` 创建用户的主目录umask 为 022
`sudo mkhomedir_helper {{用户名}}`
- 根据 `/etc/skel` 创建用户的主目录所有者拥有所有权限0组拥有读权限3
`sudo mkhomedir_helper {{用户名}} {{037}}`
- 基于自定义骨架创建用户的主目录:
`sudo mkhomedir_helper {{用户名}} {{umask}} {{路径/到/骨架目录}}`