System Grab Bag

View all TLDR pages from Linux (or from all pages)

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}}

License and Disclaimer

The content on this page is copyright © 2014—present the tldr-pages team and contributors.
This page is used with permission under Creative Commons Attribution 4.0 International License.

While we do attempt to make sure content is accurate, there isn't a warranty of any kind.