Solved

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

Posted on 2012-03-16
2
275 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

 Database Backup and Recovery Best Practices

Join Percona’s, Architect, Manjot Singh as he presents Database Backup and Recovery Best Practices (with a Focus on MySQL) on Thursday, July 27, 2017 at 11:00 am PDT / 2:00 pm EDT (UTC-7). In the case of a failure, do you know how long it will take to restore your database?

Question has a verified solution.

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

Little introduction about CP: CP is a command on linux that use to copy files and folder from one location to another location. Example usage of CP as follow: cp /myfoder /pathto/destination/folder/ cp abc.tar.gz /pathto/destination/folder/ab…
Setting up Secure Ubuntu server on VMware 1.      Insert the Ubuntu Server distribution CD or attach the ISO of the CD which is in the “Datastore”. Note that it is important to install the x64 edition on servers, not the X86 editions. 2.      Power on th…
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.
Suggested Courses

630 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