[Solved]1 Following Commands Remove Lsmith S Home Space User Account Usermod Del Lsmith B Userdel Q37250621
1. Which of the following commands will remove lsmith’shome space and user account?
a) usermod –del lsmith
b) userdel lsmith
c) deleteuser lsmith
d) userdel -r lsmith
2. User lsmith is currently logged in. In order tochange her login name to ljones, which of the following commandwould you use?
a) usermod -l ljones lsmith
b) moduser -l ljones lsmith
c) usermod –login ljones lsmith
d) none of the above
3. Which of the following commands will unlock a user’saccount?
a) moduser -u lsmith
b) usermod -U lsmith
c) usermod -unlock lsmith
d) none of the above
4. Which of the following commands will add a useraccount called lsmith and include her in a supplementary groupcalled AP?
a) useradd -g AP_users lsmith
b) useradd -G AP_users lsmith
c) adduser lsmith AP_users
d) usermod -G AP_users lsmith
5. Which command can be used to change the password ofthe user lsmith to papa and set the maximum password lifetime to 90days?
a) changepwd -n 90 lsmith papa
b) usermod –changepwd -x 90 papa lsmith
c) passwd -x 90 lsmith
d) userdel -n 90 lsmith
6.Which of the following statements best describes thedifferences between the /etc/passwd and /etc/shadowfiles?
a. All users can read the /etc/passwd file; only the root useris allowed to read the /etc/shadow file.
b. All users can read the /etc/shadow file; only the root useris allowed to read the /etc/passwd file.
c. All users can read both the /etc/shadow and /etc/passwdfiles.
d. The immutable flag is set by default on /etc/shadow; untilyou remove this flag, no user can read this file.
Expert Answer
Answer to 1. Which of the following commands will remove lsmith’s home space and user account? a) usermod –del lsmith b) userdel … . . .
OR

