Question 1060
On a RHEL 10 host, local account local44 is in a controlled provisioning task. The immediate requirement is to delete the user and its managed home directory. Which command is appropriate?
- useradd -m local44
- passwd -l local44
- usermod -s /bin/bash local44
- userdel -r local44
Explanation
Correct Answer
D:userdel -r deletes the account and requests removal of the user home and mail spool That action meets the user-account requirement. This matches the stated requirement to delete the user and its managed home directory. By contrast, the plausible alternative `usermod -s /bin/bash local44` has the effect: usermod -s updates the login shell field in the user record It changes a different attribute or lifecycle state of the user; that operation would not achieve the requested result.
Incorrect Answers
A:useradd -m creates the account and requests creation of the user home directory It changes a different attribute or lifecycle state of the user. The stated task is to delete the user and its managed home directory. Instead, `userdel -r local44` is the relevant alternative because userdel -r deletes the account and requests removal of the user home and mail spool That action meets the user-account requirement.
B:passwd -l locks the stored password hash for password authentication; it does not necessarily block every other authentication method It changes a different attribute or lifecycle state of the user. The stated task is to delete the user and its managed home directory. Instead, `userdel -r local44` is the relevant alternative because userdel -r deletes the account and requests removal of the user home and mail spool That action meets the user-account requirement.
C:usermod -s updates the login shell field in the user record It changes a different attribute or lifecycle state of the user. The stated task is to delete the user and its managed home directory. Instead, `userdel -r local44` is the relevant alternative because userdel -r deletes the account and requests removal of the user home and mail spool That action meets the user-account requirement.
Question 1061
On a RHEL 10 host, local account local45 is in a controlled provisioning task. The immediate requirement is to delete the user and its managed home directory. Which command is appropriate?
- userdel -r local45
- useradd -m local45
- passwd -l local45
- usermod -s /bin/bash local45
Explanation
Correct Answer
A:userdel -r deletes the account and requests removal of the user home and mail spool That action meets the user-account requirement. This matches the stated requirement to delete the user and its managed home directory. By contrast, the plausible alternative `usermod -s /bin/bash local45` has the effect: usermod -s updates the login shell field in the user record It changes a different attribute or lifecycle state of the user; that operation would not achieve the requested result.
Incorrect Answers
B:useradd -m creates the account and requests creation of the user home directory It changes a different attribute or lifecycle state of the user. The stated task is to delete the user and its managed home directory. Instead, `userdel -r local45` is the relevant alternative because userdel -r deletes the account and requests removal of the user home and mail spool That action meets the user-account requirement.
C:passwd -l locks the stored password hash for password authentication; it does not necessarily block every other authentication method It changes a different attribute or lifecycle state of the user. The stated task is to delete the user and its managed home directory. Instead, `userdel -r local45` is the relevant alternative because userdel -r deletes the account and requests removal of the user home and mail spool That action meets the user-account requirement.
D:usermod -s updates the login shell field in the user record It changes a different attribute or lifecycle state of the user. The stated task is to delete the user and its managed home directory. Instead, `userdel -r local45` is the relevant alternative because userdel -r deletes the account and requests removal of the user home and mail spool That action meets the user-account requirement.
Question 1062
On a RHEL 10 host, local account local46 is in a controlled provisioning task. The immediate requirement is to change the user home directory and move existing home contents. Which command is appropriate?
- userdel -r local46
- usermod -d /home/local462 -m local46
- useradd -m local46
- passwd -l local46
Explanation
Correct Answer
B:usermod -d with -m changes the home path and moves existing home content That action meets the user-account requirement. This matches the stated requirement to change the user home directory and move existing home contents. By contrast, the plausible alternative `userdel -r local46` has the effect: userdel -r deletes the account and requests removal of the user home and mail spool It changes a different attribute or lifecycle state of the user; that operation would not achieve the requested result.
Incorrect Answers
A:userdel -r deletes the account and requests removal of the user home and mail spool It changes a different attribute or lifecycle state of the user. The stated task is to change the user home directory and move existing home contents. Instead, `usermod -d /home/local462 -m local46` is the relevant alternative because usermod -d with -m changes the home path and moves existing home content That action meets the user-account requirement.
C:useradd -m creates the account and requests creation of the user home directory It changes a different attribute or lifecycle state of the user. The stated task is to change the user home directory and move existing home contents. Instead, `usermod -d /home/local462 -m local46` is the relevant alternative because usermod -d with -m changes the home path and moves existing home content That action meets the user-account requirement.
D:passwd -l locks the stored password hash for password authentication; it does not necessarily block every other authentication method It changes a different attribute or lifecycle state of the user. The stated task is to change the user home directory and move existing home contents. Instead, `usermod -d /home/local462 -m local46` is the relevant alternative because usermod -d with -m changes the home path and moves existing home content That action meets the user-account requirement.
Question 1063
On a RHEL 10 host, local account local47 is in a controlled provisioning task. The immediate requirement is to change the login shell to /bin/bash. Which command is appropriate?
- usermod -d /home/local472 -m local47
- userdel -r local47
- usermod -s /bin/bash local47
- useradd -m local47
Explanation
Correct Answer
C:usermod -s updates the login shell field in the user record That action meets the user-account requirement. This matches the stated requirement to change the login shell to /bin/bash. By contrast, the plausible alternative `usermod -d /home/local472 -m local47` has the effect: usermod -d with -m changes the home path and moves existing home content It changes a different attribute or lifecycle state of the user; that operation would not achieve the requested result.
Incorrect Answers
A:usermod -d with -m changes the home path and moves existing home content It changes a different attribute or lifecycle state of the user. The stated task is to change the login shell to /bin/bash. Instead, `usermod -s /bin/bash local47` is the relevant alternative because usermod -s updates the login shell field in the user record That action meets the user-account requirement.
B:userdel -r deletes the account and requests removal of the user home and mail spool It changes a different attribute or lifecycle state of the user. The stated task is to change the login shell to /bin/bash. Instead, `usermod -s /bin/bash local47` is the relevant alternative because usermod -s updates the login shell field in the user record That action meets the user-account requirement.
D:useradd -m creates the account and requests creation of the user home directory It changes a different attribute or lifecycle state of the user. The stated task is to change the login shell to /bin/bash. Instead, `usermod -s /bin/bash local47` is the relevant alternative because usermod -s updates the login shell field in the user record That action meets the user-account requirement.
Question 1064
On a RHEL 10 host, local account local48 is in a controlled provisioning task. The immediate requirement is to lock password-based login for the local account. Which command is appropriate?
- usermod -s /bin/bash local48
- usermod -d /home/local482 -m local48
- userdel -r local48
- passwd -l local48
Explanation
Correct Answer
D:passwd -l locks the stored password hash for password authentication; it does not necessarily block every other authentication method That action meets the user-account requirement. This matches the stated requirement to lock password-based login for the local account. By contrast, the plausible alternative `usermod -s /bin/bash local48` has the effect: usermod -s updates the login shell field in the user record It changes a different attribute or lifecycle state of the user; that operation would not achieve the requested result.
Incorrect Answers
A:usermod -s updates the login shell field in the user record It changes a different attribute or lifecycle state of the user. The stated task is to lock password-based login for the local account. Instead, `passwd -l local48` is the relevant alternative because passwd -l locks the stored password hash for password authentication; it does not necessarily block every other authentication method That action meets the user-account requirement.
B:usermod -d with -m changes the home path and moves existing home content It changes a different attribute or lifecycle state of the user. The stated task is to lock password-based login for the local account. Instead, `passwd -l local48` is the relevant alternative because passwd -l locks the stored password hash for password authentication; it does not necessarily block every other authentication method That action meets the user-account requirement.
C:userdel -r deletes the account and requests removal of the user home and mail spool It changes a different attribute or lifecycle state of the user. The stated task is to lock password-based login for the local account. Instead, `passwd -l local48` is the relevant alternative because passwd -l locks the stored password hash for password authentication; it does not necessarily block every other authentication method That action meets the user-account requirement.
Question 1065
On a RHEL 10 host, local account local49 is in a controlled provisioning task. The immediate requirement is to change the user home directory and move existing home contents. Which command is appropriate?
- usermod -d /home/local492 -m local49
- userdel -r local49
- useradd -m local49
- passwd -l local49
Explanation
Correct Answer
A:usermod -d with -m changes the home path and moves existing home content That action meets the user-account requirement. This matches the stated requirement to change the user home directory and move existing home contents. By contrast, the plausible alternative `useradd -m local49` has the effect: useradd -m creates the account and requests creation of the user home directory It changes a different attribute or lifecycle state of the user; that operation would not achieve the requested result.
Incorrect Answers
B:userdel -r deletes the account and requests removal of the user home and mail spool It changes a different attribute or lifecycle state of the user. The stated task is to change the user home directory and move existing home contents. Instead, `usermod -d /home/local492 -m local49` is the relevant alternative because usermod -d with -m changes the home path and moves existing home content That action meets the user-account requirement.
C:useradd -m creates the account and requests creation of the user home directory It changes a different attribute or lifecycle state of the user. The stated task is to change the user home directory and move existing home contents. Instead, `usermod -d /home/local492 -m local49` is the relevant alternative because usermod -d with -m changes the home path and moves existing home content That action meets the user-account requirement.
D:passwd -l locks the stored password hash for password authentication; it does not necessarily block every other authentication method It changes a different attribute or lifecycle state of the user. The stated task is to change the user home directory and move existing home contents. Instead, `usermod -d /home/local492 -m local49` is the relevant alternative because usermod -d with -m changes the home path and moves existing home content That action meets the user-account requirement.
Question 1066
On a RHEL 10 host, local account local50 is in a controlled provisioning task. The immediate requirement is to lock password-based login for the local account. Which command is appropriate?
- usermod -s /bin/bash local50
- passwd -l local50
- usermod -d /home/local502 -m local50
- userdel -r local50
Explanation
Correct Answer
B:passwd -l locks the stored password hash for password authentication; it does not necessarily block every other authentication method That action meets the user-account requirement. This matches the stated requirement to lock password-based login for the local account. By contrast, the plausible alternative `usermod -d /home/local502 -m local50` has the effect: usermod -d with -m changes the home path and moves existing home content It changes a different attribute or lifecycle state of the user; that operation would not achieve the requested result.
Incorrect Answers
A:usermod -s updates the login shell field in the user record It changes a different attribute or lifecycle state of the user. The stated task is to lock password-based login for the local account. Instead, `passwd -l local50` is the relevant alternative because passwd -l locks the stored password hash for password authentication; it does not necessarily block every other authentication method That action meets the user-account requirement.
C:usermod -d with -m changes the home path and moves existing home content It changes a different attribute or lifecycle state of the user. The stated task is to lock password-based login for the local account. Instead, `passwd -l local50` is the relevant alternative because passwd -l locks the stored password hash for password authentication; it does not necessarily block every other authentication method That action meets the user-account requirement.
D:userdel -r deletes the account and requests removal of the user home and mail spool It changes a different attribute or lifecycle state of the user. The stated task is to lock password-based login for the local account. Instead, `passwd -l local50` is the relevant alternative because passwd -l locks the stored password hash for password authentication; it does not necessarily block every other authentication method That action meets the user-account requirement.
Question 1067
On a RHEL 10 host, local account local51 is in a controlled provisioning task. The immediate requirement is to change the user home directory and move existing home contents. Which command is appropriate?
- userdel -r local51
- useradd -m local51
- usermod -d /home/local512 -m local51
- passwd -l local51
Explanation
Correct Answer
C:usermod -d with -m changes the home path and moves existing home content That action meets the user-account requirement. This matches the stated requirement to change the user home directory and move existing home contents. By contrast, the plausible alternative `useradd -m local51` has the effect: useradd -m creates the account and requests creation of the user home directory It changes a different attribute or lifecycle state of the user; that operation would not achieve the requested result.
Incorrect Answers
A:userdel -r deletes the account and requests removal of the user home and mail spool It changes a different attribute or lifecycle state of the user. The stated task is to change the user home directory and move existing home contents. Instead, `usermod -d /home/local512 -m local51` is the relevant alternative because usermod -d with -m changes the home path and moves existing home content That action meets the user-account requirement.
B:useradd -m creates the account and requests creation of the user home directory It changes a different attribute or lifecycle state of the user. The stated task is to change the user home directory and move existing home contents. Instead, `usermod -d /home/local512 -m local51` is the relevant alternative because usermod -d with -m changes the home path and moves existing home content That action meets the user-account requirement.
D:passwd -l locks the stored password hash for password authentication; it does not necessarily block every other authentication method It changes a different attribute or lifecycle state of the user. The stated task is to change the user home directory and move existing home contents. Instead, `usermod -d /home/local512 -m local51` is the relevant alternative because usermod -d with -m changes the home path and moves existing home content That action meets the user-account requirement.
Question 1068
On a RHEL 10 host, local account local52 is in a controlled provisioning task. The immediate requirement is to create the local user and its home directory. Which command is appropriate?
- passwd -l local52
- usermod -s /bin/bash local52
- usermod -d /home/local522 -m local52
- useradd -m local52
Explanation
Correct Answer
D:useradd -m creates the account and requests creation of the user home directory That action meets the user-account requirement. This matches the stated requirement to create the local user and its home directory. By contrast, the plausible alternative `usermod -d /home/local522 -m local52` has the effect: usermod -d with -m changes the home path and moves existing home content It changes a different attribute or lifecycle state of the user; that operation would not achieve the requested result.
Incorrect Answers
A:passwd -l locks the stored password hash for password authentication; it does not necessarily block every other authentication method It changes a different attribute or lifecycle state of the user. The stated task is to create the local user and its home directory. Instead, `useradd -m local52` is the relevant alternative because useradd -m creates the account and requests creation of the user home directory That action meets the user-account requirement.
B:usermod -s updates the login shell field in the user record It changes a different attribute or lifecycle state of the user. The stated task is to create the local user and its home directory. Instead, `useradd -m local52` is the relevant alternative because useradd -m creates the account and requests creation of the user home directory That action meets the user-account requirement.
C:usermod -d with -m changes the home path and moves existing home content It changes a different attribute or lifecycle state of the user. The stated task is to create the local user and its home directory. Instead, `useradd -m local52` is the relevant alternative because useradd -m creates the account and requests creation of the user home directory That action meets the user-account requirement.
Question 1069
On a RHEL 10 host, local account local53 is in a controlled provisioning task. The immediate requirement is to lock password-based login for the local account. A review considers `usermod -s /bin/bash local53` as an alternative. Its relevant behavior is: usermod -s updates the login shell field in the user record. That is a different result from the requested operation. Which listed command satisfies the original requirement without substituting this other behavior?
- passwd -l local53
- usermod -s /bin/bash local53
- usermod -d /home/local532 -m local53
- userdel -r local53
Explanation
Correct Answer
A:passwd -l locks the stored password hash for password authentication; it does not necessarily block every other authentication method That action meets the user-account requirement. This matches the stated requirement to lock password-based login for the local account. By contrast, the plausible alternative `userdel -r local53` has the effect: userdel -r deletes the account and requests removal of the user home and mail spool It changes a different attribute or lifecycle state of the user; that operation would not achieve the requested result.
Incorrect Answers
B:usermod -s updates the login shell field in the user record It changes a different attribute or lifecycle state of the user. The stated task is to lock password-based login for the local account. Instead, `passwd -l local53` is the relevant alternative because passwd -l locks the stored password hash for password authentication; it does not necessarily block every other authentication method That action meets the user-account requirement.
C:usermod -d with -m changes the home path and moves existing home content It changes a different attribute or lifecycle state of the user. The stated task is to lock password-based login for the local account. Instead, `passwd -l local53` is the relevant alternative because passwd -l locks the stored password hash for password authentication; it does not necessarily block every other authentication method That action meets the user-account requirement.
D:userdel -r deletes the account and requests removal of the user home and mail spool It changes a different attribute or lifecycle state of the user. The stated task is to lock password-based login for the local account. Instead, `passwd -l local53` is the relevant alternative because passwd -l locks the stored password hash for password authentication; it does not necessarily block every other authentication method That action meets the user-account requirement.
Question 1070
On a RHEL 10 host, local account local54 is in a controlled provisioning task. The immediate requirement is to create the local user and its home directory. Which command is appropriate?
- passwd -l local54
- useradd -m local54
- usermod -s /bin/bash local54
- usermod -d /home/local542 -m local54
Explanation
Correct Answer
B:useradd -m creates the account and requests creation of the user home directory That action meets the user-account requirement. This matches the stated requirement to create the local user and its home directory. By contrast, the plausible alternative `usermod -d /home/local542 -m local54` has the effect: usermod -d with -m changes the home path and moves existing home content It changes a different attribute or lifecycle state of the user; that operation would not achieve the requested result.
Incorrect Answers
A:passwd -l locks the stored password hash for password authentication; it does not necessarily block every other authentication method It changes a different attribute or lifecycle state of the user. The stated task is to create the local user and its home directory. Instead, `useradd -m local54` is the relevant alternative because useradd -m creates the account and requests creation of the user home directory That action meets the user-account requirement.
C:usermod -s updates the login shell field in the user record It changes a different attribute or lifecycle state of the user. The stated task is to create the local user and its home directory. Instead, `useradd -m local54` is the relevant alternative because useradd -m creates the account and requests creation of the user home directory That action meets the user-account requirement.
D:usermod -d with -m changes the home path and moves existing home content It changes a different attribute or lifecycle state of the user. The stated task is to create the local user and its home directory. Instead, `useradd -m local54` is the relevant alternative because useradd -m creates the account and requests creation of the user home directory That action meets the user-account requirement.
Red Hat Certified System Administrator (RHCSA) (EX200) Practice Tests