How To Create User Creation Defaults With Skel In Linux?

RSS
EMAIL
FACEBOOK
FACEBOOK
GOOGLE
GOOGLE
https://www.poftut.com/create-user-creation-defaults-skel-linux/
PINTEREST
PINTEREST
INSTAGRAM

We want to create system default for user creation and addition. System defaults mean what will be default values for the user creation like home path, user id etc.

Skel Directory

/etc/skel is the directory where files will be copied to the new user directory from here. If we look detailed we will see that there are some default files in it.

All these .bashrc .bash_logout and .bash_profile files will be copied newly created user home directory.

.bashrc is the start file when a new shell is opened it will run. For example if we want to run some command while opening new shell or we want to set some environment variables we will add them to this files.

.bash_profile is the file which will call .bashrc file and set some PATH environment

LEARN MORE  How Prompt for Input in Bash

Create Some File In Skel

Keep i mind that to create files in skel we need root privileges. If we want to set some mail related envonmrent variables we can edit .bash_profile file like below.

RSS
EMAIL
FACEBOOK
FACEBOOK
GOOGLE
GOOGLE
https://www.poftut.com/create-user-creation-defaults-skel-linux/
PINTEREST
PINTEREST
INSTAGRAM

Leave a Reply

Your email address will not be published.