Solved

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

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

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

Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

Join & Write a Comment

This is the error message I got (CODE) Error caused by incompatible libmp3lame 3.98-2 with ffmpeg I've googled this error message and found out sometimes it attaches this note "can be treated with downgrade libmp3lame to version 3.97 or 3.98" …
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 several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

706 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

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now