Linux – Quiz 6
Question 1
- Groups membership is configured in a file. Which file?
| /etc/group | ||
| /etc/grp | ||
| /etc/members | ||
| /etc/mmbrs |
1 points
Question 2
- Which of the following is a likely entry for the user root in the /etc/passwd file.
| root:x:0:0:root:/root:/bin/bash | ||
| root:x:499:499:root:/root:/bin/bash | ||
| root:x:500:500:root:/root:/bin/bash | ||
| root:x:000:000:root:/root:/bin/bash |
1 points
Question 3
- What is sudo?
| A program that can be used to run programs as root. | ||
| The user name of a person allowed to run programs as root. | ||
| A group name for those allowed to run programs as root. | ||
| A configuration file for those allowed to run programs as root. |
1 points
Question 4
- What is a UID?
| A unique number associated with a user account. | ||
| a Universally Unique Identifier. | ||
| An Un-Interruptible Device. | ||
| A file |
1 points
Question 5
- What is the command to lock a user’s account so they can no longer use it.
| passwd –l username | ||
| passwd –lock username | ||
| shadow -l username | ||
| shadow -lock username |
1 points
Question 6
- What does the Usermod program do?
| It allows you to edit user accounts | ||
| It changes the mode of a user | ||
| It changes the permissions of a user | ||
| There is no such program. |
1 points
Question 7
- What is the best command to use to edit the /etc/passwd file?
| vipw | ||
| vi /etc/passwd | ||
| nanopw | ||
| nano /etc/passwd |
1 points
Question 8
- What is the commnand to add a user?
| You can use either the adduser or the useradd command to add a user. | ||
| Only the useradd command will add a user. | ||
| Only the adduser command will add a user. | ||
| Niether of the adduser or useradd commands can be used to add a user. |
1 points
Question 9
- What is the purpose of /etc/skel?
| It is a template for new account directories. | ||
| This is the configuration file for the skel command. | ||
| This is where CentOS stores its skeletons. | ||
| There is no /etc/skel |
1 points
Question 10
- What is the difference between the files /etc/passwd and /etc/shadow?
| Encrypted passwords are stored in /etc/shadow | ||
| Encrypted passwords are stored in /etc/passwd | ||
| Encrypted passwords are stored in both /etc/shadow and /etc/passwd | ||
| Encrypted passwords are stored in /etc/passwd and plain text passwords are stored in /etc/shadow |
1 points
Leave a reply