/etc/skel provides the blueprint for every new user account on a Linux system. By placing files here, you ensure they are automatically copied into each new home directory—ideal for default configuration files, welcome notices, or policy reminders.
Add a Custom Welcome Notice
To display a standard reminder or welcome message for all new users, create a file in/etc/skel:
Files placed in
/etc/skel are automatically replicated to every new user’s home directory. Use this to distribute common configurations or reminders.Verify Replication with a New User
Create a test user (e.g.,trinity) to confirm the welcome notice appears:
Customize the PATH for an Individual User
If a specific user needs a custom directory like/opt/bin in their PATH, update their ~/.bashrc:
PATH line and prepend your directory:
/opt/bin will be included:
specialtool in /opt/bin runs directly:
Apply Default PATH Changes for All New Users
To make the customPATH part of every future account, modify the skeleton .bashrc:
PATH automatically.
Be cautious when editing system-wide skeleton files. Incorrect settings in
/etc/skel may affect all new user environments.Common Files in /etc/skel
| Filename | Purpose |
|---|---|
| .bashrc | Interactive shell configuration |
| .profile | Login shell environment variables |
| .bash_logout | Commands to run at logout |
| README | Custom welcome or policy messages |