what are the background actions are happening in linux when we are adding a user

what are the  background  actions are happening  in linux when we are adding a user
greensumanAsked:
Who is Participating?
 
torakeshbConnect With a Mentor Commented:
agree to @legolasthehansy. one more thing.. The /etc/skel directory, files and directories are automatically copied over to a new user's home directory when users are created by the useradd program.
0
 
legolasthehansyCommented:
When you add a user, the following happens,

/etc/passwd is modified (a new user id, group id, home folder is created)
/etc/shadow is modified
the home folder is assigned ownership of the user so that the user can access it upon login
a default shell is assigned (usually /bin/bash) for the user
default login and logout scripts are created in the home directory
0
All Courses

From novice to tech pro — start learning today.