When you are creating a user what are all the data base files are getting affected?
/etc/passwdand
/etc/shadow
/etc/group
All of the above
If you open /etc/passwd file you find a following entry
U1:X:500:500:prog: /home/u1 : /bin/bash
In this what /home/u1 indicates?
It is a home directory of the user.
It is a user comment
It is a user default shell
It is user GID
If you open a /etc/passwd file you find a following entry
U1:X:500:500:prog: /home/u1 : /bin/bash
In this what /bin/bash indicates?
It is a home directory of the user.
It is a user comment
It is a user default shell
It is user GID
If you open a /etc/passwd file you find a following entry
U1:X:500:500:prog: /home/u1 : /bin/bash
In this what U1 indicates?
User name
It is a user comment
It is a user default shell
It is user GID
If you open a /etc/passwd file you find a following entry
U1:X:500:500:prog: /home/u1 : /bin/bash
In this what X indicates?
User name
It is a user comment
It is a user default shell
Mask password
If you open a /etc/passwd file you find a following entry
U1:X:500:500:prog: /home/u1 : /bin/bash
In this what first 500 indicates?
UID
GID
SHELL
USER
If you open a /etc/passwd file you find a following entry
U1:X:500:500:prog: /home/u1 : /bin/bash
In this what second 500 indicates?
UID
GID
SHELL
USER name
If you open a /etc/passwd file you find a following entry
U1:X:500:500:prog: /home/u1 : /bin/bash
In this what prog indicates?
UID
GID
SHELL
USER comment
If you open a /etc/shadow file you find a following entry
U1:hjadfhsop45367$5&*kjmn= :13536:0:99999
In this what hjadfhsop45367$5&*kjmn indicates?
UID
GID
SHELL
Encrypted password.
If you open a /etc/shadow file you find a following entry
U1:hjadfhsop45367$5&*kjmn= :13536:0:99999:7::
In this what 13536 indicates?
No of days since 1970
Min no of days to exchange password.
Max no of days to change password
Warning days
If you open a /etc/shadow file you find a following entry
U1:hjadfhsop45367$5&*kjmn= :13536:0:99999:7::
In this what 0 indicates?
No of days since 1970
Min no of days to exchange password.
Max no of days to change password
Warning days
If you open a /etc/shadow file you find a following entry
U1:hjadfhsop45367$5&*kjmn= :13536:0:99999:7::
In this what 99999 indicates?
No of days since 1970
Min no of days to exchange password.
Max no of days to change password
Warning days
If you open a /etc/shadow file you find a following entry
U1:hjadfhsop45367$5&*kjmn= :13536:0:99999:7::
In this what 7 indicates?
No of days since 1970
Min no of days to exchange password.
Max no of days to change password
Warning days
If you open a /etc/group file you find a following entry
U1:X:500:SACHIN,TOM
In this what 500 indicates?
GROUP NAME
MASK PASSWORD
GID
MEMBERS OF THE GROUP
If you open a /etc/group file you find a following entry
U1:X:500:SACHIN,TOM
In this what X indicates?
GROUP NAME
MASK PASSWORD
GID
MEMBERS OF THE GROUP
If you open a /etc/group file you find a following entry
U1:X:500:SACHIN,TOM
In this what SACHIN, TOM indicates?
GROUP NAME
MASK PASSWORD
GID
MEMBERS OF THE GROUP
When your creating a user by typing the following command
[root@comp1 ~]#useradd
Options :
-u -
-g –
-o –
-G -
-c -
-d -
-s -
What is the –g option shows?
Primary group name/ GID
Override
Secondary group
SHELL
When your creating a user by typing the following command
[root@comp1 ~]#useradd
Options :
-u -
-g –
-o –
-G -
-c -
-d -
-s -
What is the –G option shows?
Primary group name/ GID
Override
Secondary group
SHELL
While Modifying a User if you want to use the following command
[root@comp1 ~]#usermod
Options :
-l –
-L -
-U -
What –U option shows?
Change login name
Lock the account
Unlock the account
None of the above
While Modifying a User if you want to use the following command
[root@comp1 ~]#usermod
Options :
-l –
-L -
-U -
What –L option shows?
Change login name
Lock the account
Unlock the account
None of the above