|
Question |
Rating |
View Answer |
|
All groups are defined in the /etc/group file. Each entry contains four fields in the following order. Choose one:
a. groupname, password, GID, member list b. GID, groupname, password, member list c. groupname, GID, password, member list d. GID, member list, groupname, password |
|
View Answer |
|
After bob leaves the company you issue the command userdel bob. Although his entry in the /etc/passwd file has been deleted, his home directory is still there. What command could you have used to make sure that his home directory was also deleted? Choose one:
a. userdel -m bob b. userdel -u bob c. userdel -l bob d. userdel -r bob |
|
View Answer |
|
Mary has recently gotten married and wants to change her username from mstone to mknight. Which of the following commands should you run to accomplish this? Choose one:
a. usermod -l mknight mstone b. usermod -l mstone mknight c. usermod -u mknight mstone d. usermod -u mstone mknight |
|
View Answer |
|
You have created special configuration files that you want copied to each user's home directories when creating new user accounts. You copy the files to /etc/skel. Which of the following commands will make this happen? Choose one:
a. useradd -m username b. useradd -mk username c. useradd -k username d. useradd -Dk username |
|
View Answer |
|
You issue the following command useradd -m bobm But the user cannot logon. What is the problem? Choose one:
a. You need to assign a password to bobm's account using the passwd command. b. You need to create bobm's home directory and set the appropriate permissions. c. You need to edit the /etc/passwd file and assign a shell for bobm's account. d. The username must be at least five characters long. |
|
View Answer |
|
When using useradd to create a new user account, which of the following tasks is not done automatically. Choose one:
a. Assign a UID. b. Assign a default shell. c. Create the user's home directory. d. Define the user's home directory. |
|
View Answer |
|
You create a new user by adding the following line to the /etc/passwd file bobm::501:501:Bob Morris:/home/bobm:/bin/bash You then create the user's home directory and use the passwd command to set his password. However, the user calls you and says that he cannot log on. What is the problem?
Choose one: a. The user did not change his password. b. bobm does not have permission to /home/bobm. c. The user did not type his username in all caps. d. You cannot leave the password field blank when creating a new user. |
|
View Answer |
|
Which of the following tasks is not necessary when creating a new user by editing the /etc/passwd file?
Choose one: a. Create a link from the user's home directory to the shell the user will use. b. Create the user's home directory c. Use the passwd command to assign a password to the account. d. Add the user to the specified group. |
|
View Answer |
|
You create a new user account by adding the following line to your /etc/passwd file. bobm:baddog:501:501:Bob Morris:/home/bobm:/bin/bash Bob calls you and tells you that he cannot logon. You verify that he is using the correct username and password. What is the problem? Choose one:
a. The UID and GID cannot be identical. b. You cannot have spaces in the line unless they are surrounded with double quotes. c. You cannot directly enter the password; rather you have to use the passwd command to assign a password to the user. d. The username is too short, it must be at least six characters long. |
|
View Answer |
|
You attempt to use shadow passwords but are unsuccessful. What characteristic of the /etc/passwd file may cause this?
Choose one: a. The login command is missing. b. The username is too long. c. The password field is blank. d. The password field is prefaced by an asterick. |
|
View Answer |