Deal of The Day! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

Linux Foundation LFCA Exam - Topic 5 Question 42 Discussion

Posted by Jeff on Apr 29, 2025 at 11:58 PM

Which of the following commands can be used to lock a user's account so that they cannot log into a Linux server without removing any files, folders, or data?

Suggested Answer: B

Get Premium LFCA Questions as Interactive Web-Based Practice Test or PDF Real Exam Format Detailed Explanations Instant Access Get Your Practice Test
37 comments · newest first
QU
Quentin 11 months ago
Wait, can chmod really lock an account?
DE
Devora 11 months ago
I thought lock was a command too?
AN
Angelo 11 months ago
Definitely usermod!
RE
Reita 11 months ago
No way, userdel deletes the account, not just locks it!
AD
Adria 11 months ago
Pretty sure it's usermod.
MI
Micah 12 months ago
I vaguely recall that lock is a command, but I don't think it's the one used for locking accounts. I guess I'll lean towards usermod as well.
RA
Raina 12 months ago
I feel like chmod is more about changing permissions, so it can't be the answer. I might go with usermod, but I need to double-check.
JU
Julene 1 year ago
I remember practicing a question about locking accounts, and I think it was definitely not userdel since that deletes the user.
EL
Elly 1 year ago
I think the command to lock a user account is related to usermod, but I'm not completely sure if it's the right option here.
LY
Lynda 1 year ago
I think the answer is B, usermod. That command allows you to modify user account settings, including locking the account, without deleting anything. I'm pretty confident in that one.
AL
Alease 1 year ago
The lock command sounds like it might be the right answer, but I'm not 100% sure if that's the Linux-specific command for locking a user account. I'll have to double-check the options.
MI
Ming 1 year ago
Hmm, I'm a bit confused on this one. I know there are commands to lock user accounts, but I'm not sure which one is the right answer here. I'll have to think it through carefully.
JO
Josphine 1 year ago
I'm pretty sure the answer is B. The usermod command can be used to lock a user's account without deleting any files or data.
JO
Joaquin 1 year ago
B) usermod is the way to go. It's like putting a padlock on the user's account without touching their stuff. Elegant!
LO
Lourdes 1 year ago
↳ replying to Joaquin
D) chmod is for changing permissions, usermod is the right command for locking a user's account.
ME
Mendy 1 year ago
↳ replying to Joaquin
C) userdel seems too extreme, usermod is definitely the better choice.
HO
Howard 1 year ago
↳ replying to Joaquin
A) lock sounds too harsh, I prefer usermod for a more gentle approach.
GI
Giuseppe 1 year ago
↳ replying to Joaquin
B) usermod is the way to go. It's like putting a padlock on the user's account without touching their stuff. Elegant!
TH
Theola 1 year ago
Gotta be B) usermod. Wouldn't want to accidentally delete someone's files just to lock them out, you know?
CR
Crista 1 year ago
↳ replying to Theola
B) usermod
NI
Nickolas 1 year ago
↳ replying to Theola
A) lock
GL
Glenn 1 year ago
Hmm, I'm torn between B) usermod and C) userdel. Userdel might be a bit overkill, but it's a sure-fire way to keep them out.
MI
Mi 1 year ago
↳ replying to Glenn
I agree, usermod is probably the safer option. You can always resort to userdel if necessary.
TA
Tanesha 1 year ago
↳ replying to Glenn
Userdel does seem a bit extreme. Maybe try usermod first and see if that does the trick.
LO
Lorean 1 year ago
↳ replying to Glenn
I think usermod is the way to go. It allows you to modify user account settings without deleting them.
AR
Arlie 1 year ago
I believe usermod is the correct answer because it allows you to modify user account properties, including locking the account.
CH
Christiane 1 year ago
I'd go with B) usermod. It's the surgical strike approach - just lock the account, no collateral damage.
HE
Hershel 1 year ago
↳ replying to Christiane
Locking the account with usermod sounds like the safest choice.
JO
Jose 1 year ago
↳ replying to Christiane
Yeah, usermod seems like the best option.
JO
Joanna 1 year ago
↳ replying to Christiane
I think usermod is the way to go.
OL
Oliva 1 year ago
I'm not sure, but I think A) lock could also be used to lock a user's account.
AL
Alishia 1 year ago
I agree with Marilynn, usermod seems like the right command to lock a user's account.
MA
Marilynn 1 year ago
I think the answer is B) usermod.
FR
Freida 2 years ago
B) usermod is definitely the way to go. It's the most straightforward option for locking a user's account without affecting their files.
DA
Darrel 1 year ago
↳ replying to Freida
C) userdel would delete the user's account entirely, so usermod is definitely the better option here.
BE
Beatriz 1 year ago
↳ replying to Freida
A) lock command might work too, but usermod is probably the safer choice.
HI
Hillary 1 year ago
↳ replying to Freida
B) usermod is definitely the way to go. It's the most straightforward option for locking a user's account without affecting their files.
0/2000 characters

Save Cancel