Solved

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

Posted on 2012-03-16
2
269 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Ransomware: The New Cyber Threat & How to Stop It

This infographic explains ransomware, type of malware that blocks access to your files or your systems and holds them hostage until a ransom is paid. It also examines the different types of ransomware and explains what you can do to thwart this sinister online threat.  

Question has a verified solution.

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

I. Introduction There's an interesting discussion going on now in an Experts Exchange Group — Attachments with no extension (http://www.experts-exchange.com/discussions/210281/Attachments-with-no-extension.html). This reminded me of questions tha…
In the first part of this tutorial we will cover the prerequisites for installing SQL Server vNext on Linux.
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.
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.

751 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