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

Actual exam question for Linux Foundation's LFCA exam
Question #: 42
Topic #: 5
[All LFCA Questions]

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?

Show Suggested Answer Hide Answer
Suggested Answer: B

Contribute your Thoughts:

0/2000 characters
Quentin
3 months ago
Wait, can chmod really lock an account?
upvoted 0 times
...
Devora
3 months ago
I thought lock was a command too?
upvoted 0 times
...
Angelo
4 months ago
Definitely usermod!
upvoted 0 times
...
Reita
4 months ago
No way, userdel deletes the account, not just locks it!
upvoted 0 times
...
Adria
4 months ago
Pretty sure it's usermod.
upvoted 0 times
...
Micah
4 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.
upvoted 0 times
...
Raina
4 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.
upvoted 0 times
...
Julene
5 months ago
I remember practicing a question about locking accounts, and I think it was definitely not userdel since that deletes the user.
upvoted 0 times
...
Elly
5 months 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.
upvoted 0 times
...
Lynda
5 months 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.
upvoted 0 times
...
Alease
5 months 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.
upvoted 0 times
...
Ming
5 months 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.
upvoted 0 times
...
Josphine
5 months 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.
upvoted 0 times
...
Joaquin
9 months ago
B) usermod is the way to go. It's like putting a padlock on the user's account without touching their stuff. Elegant!
upvoted 0 times
Lourdes
8 months ago
D) chmod is for changing permissions, usermod is the right command for locking a user's account.
upvoted 0 times
...
Mendy
8 months ago
C) userdel seems too extreme, usermod is definitely the better choice.
upvoted 0 times
...
Howard
9 months ago
A) lock sounds too harsh, I prefer usermod for a more gentle approach.
upvoted 0 times
...
Giuseppe
9 months ago
B) usermod is the way to go. It's like putting a padlock on the user's account without touching their stuff. Elegant!
upvoted 0 times
...
...
Theola
10 months ago
Gotta be B) usermod. Wouldn't want to accidentally delete someone's files just to lock them out, you know?
upvoted 0 times
Crista
9 months ago
B) usermod
upvoted 0 times
...
Nickolas
9 months ago
A) lock
upvoted 0 times
...
...
Glenn
10 months 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.
upvoted 0 times
Mi
9 months ago
I agree, usermod is probably the safer option. You can always resort to userdel if necessary.
upvoted 0 times
...
Tanesha
9 months ago
Userdel does seem a bit extreme. Maybe try usermod first and see if that does the trick.
upvoted 0 times
...
Lorean
9 months ago
I think usermod is the way to go. It allows you to modify user account settings without deleting them.
upvoted 0 times
...
...
Arlie
10 months ago
I believe usermod is the correct answer because it allows you to modify user account properties, including locking the account.
upvoted 0 times
...
Christiane
10 months ago
I'd go with B) usermod. It's the surgical strike approach - just lock the account, no collateral damage.
upvoted 0 times
Hershel
9 months ago
Locking the account with usermod sounds like the safest choice.
upvoted 0 times
...
Jose
9 months ago
Yeah, usermod seems like the best option.
upvoted 0 times
...
Joanna
9 months ago
I think usermod is the way to go.
upvoted 0 times
...
...
Oliva
10 months ago
I'm not sure, but I think A) lock could also be used to lock a user's account.
upvoted 0 times
...
Alishia
10 months ago
I agree with Marilynn, usermod seems like the right command to lock a user's account.
upvoted 0 times
...
Marilynn
10 months ago
I think the answer is B) usermod.
upvoted 0 times
...
Freida
11 months 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.
upvoted 0 times
Darrel
9 months ago
C) userdel would delete the user's account entirely, so usermod is definitely the better option here.
upvoted 0 times
...
Beatriz
9 months ago
A) lock command might work too, but usermod is probably the safer choice.
upvoted 0 times
...
Hillary
9 months 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.
upvoted 0 times
...
...

Save Cancel