Monday, September 28, 2015

USER AND SECURITY - 1

USER AND SECURITY INTERVIEW QUESTIONS AND ANSWERS
PAGE - 1
1..What is user?
Linux is provided by users and groups. Each user is associated with a
unique positive integer called the user ID (uid). During login, the user provides a username and password to the login program. The uid 0 is associated with a special user known as root. The root user has special. privileges, and can do almost anything on the system


2..How to create  a user?



#  adduser  user_name

#  useradd  user_name



3..How to set the password for  the particular user?
#  passwd  user_name
4..How to change the group  password?
#  passwd   -g  group_name
5..How to lock the account?
#  passwd  -l user_name
or
usermod   -L user_name
6..How to unlock the user account?
#  passwd   -u user_name
Or
usermod   -U  user_name                        
7..How to delete  the particular user account?
#  userdel user_name
8..How to  set to expire the particular  user account?
#  chage  -E   30/12/2016   user_name
9..How to check the   aging of user  details?
#  chage  -l   user_name
10..How to  monitor the  users?
#  who 

No comments: