Stop new accounts from starting with that barebones home directory

User & Group Management

Stop new accounts from starting with that barebones home directory

🧩 The Challenge

You finally add a user to a box only to find their home directory is completely empty, missing basic things like a proper bashrc or login profile. It’s annoying to manually copy over templates every single time you spin up a new dev.

💡 The Fix

Just drop whatever config files you want every new user to have into the skel directory. Linux actually handles this for you automatically when you use the standard adduser command.

cp /etc/skel/.bashrc /etc/skel/.vimrc /etc/skel/.profile /home/your_template_dir/
mkdir -p /etc/skel/.config/your-app-configs
cp -r /path/to/template/configs/* /etc/skel/.config/

⚙️ Why It Works

Anything you place inside /etc/skel gets copied over to the home directory of every new user created via useradd, provided you don’t use the -m flag to skip home creation. It’s the easiest way to enforce standard shell environments without writing custom post-creation scripts.

🚀 Pro-Tip: Use a hidden .bash_logout file in there too to force a screen clear or log cleanup whenever a user logs out.

Linux Tips & Tricks | © ngelinux.com | 8/14/2026

0 0 votes
Article Rating
Subscribe
Notify of
guest

0 Comments
Newest
Oldest Most Voted