Solved

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

Posted on 2012-03-16
2
266 Views
Last Modified: 2012-03-25
what are the  background  actions are happening  in linux when we are adding a user
0
Comment
Question by:greensuman
2 Comments
 
LVL 11

Expert Comment

by:legolasthehansy
ID: 37730004
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
 
LVL 7

Accepted Solution

by:
torakeshb earned 500 total points
ID: 37730269
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

Featured Post

Visualize your virtual and backup environments

Create well-organized and polished visualizations of your virtual and backup environments when planning VMware vSphere, Microsoft Hyper-V or Veeam deployments. It helps you to gain better visibility and valuable business insights.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

rdate is a Linux command and the network time protocol for immediate date and time setup from another machine. The clocks are synchronized by entering rdate with the -s switch (command without switch just checks the time but does not set anything). …
SSH (Secure Shell) - Tips and Tricks As you all know SSH(Secure Shell) is a network protocol, which we use to access/transfer files securely between two networked devices. SSH was actually designed as a replacement for insecure protocols that sen…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

679 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question