Skip to main content
The skeleton directory /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:
Insert your message, for example:
Save and exit.
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:
List all files, including hidden ones:
Expected output:
Display the notice:

Customize the PATH for an Individual User

If a specific user needs a custom directory like /opt/bin in their PATH, update their ~/.bashrc:
Find the existing PATH line and prepend your directory:
Save and close. When the user opens a new shell session, /opt/bin will be included:
Example:
Now specialtool in /opt/bin runs directly:

Apply Default PATH Changes for All New Users

To make the custom PATH part of every future account, modify the skeleton .bashrc:
Add your directory:
Every user created after this change inherits the updated 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


References

Watch Video

Practice Lab