Stop your new users from tripping over umask issues

User & Group Management

Stop your new users from tripping over umask issues

🧩 The Challenge

Setting up a shared directory for a dev team is usually fine until someone creates a file that nobody else can edit. I spent way too many hours chasing down permissions bugs because a new hire’s umask was set to something restrictive by default.

💡 The Fix

Use the skel directory to enforce sane default permissions for every new account you provision. It saves you from having to run chown or chmod across the project tree every single week.

echo "umask 002" >> /etc/skel/.bashrc

⚙️ Why It Works

Any file placed inside /etc/skel gets copied into the home directory of every new user created via useradd. By putting the umask tweak there, you ensure new users start with group-writable files without any extra manual work.

🚀 Pro-Tip: Check /etc/login.defs if your distro overrides these settings during the account creation process.

Linux Tips & Tricks | © ngelinux.com | 7/18/2026

0 0 votes
Article Rating
Subscribe
Notify of
guest

0 Comments
Newest
Oldest Most Voted