mkhomedir_helper

Create the user's home directory after creating the user. More information: <https://manned.org/mkhomedir_helper>.

Install

All systems
curl cmd.cat/mkhomedir_helper.sh
Debian Debian
apt-get install libpam-modules-bin
Ubuntu
apt-get install libpam-modules-bin
Arch Arch Linux
pacman -S pam
image/svg+xml Kali Linux
apt-get install libpam-modules-bin
CentOS
yum install pam
Fedora
dnf install pam
Windows (WSL2)
sudo apt-get update sudo apt-get install libpam-modules-bin
Raspbian
apt-get install libpam-modules-bin

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

© tl;dr; authors and contributors