BLACK FRIDAY SALE – Unlock Up to 25% OFF on All Exam Prep! - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

LPI 102-500 Exam - Topic 11 Question 92 Discussion

Posted by Simona on Sep 13, 2024 at 07:31 AM

Which of the following steps prevents a user from obtaining an interactive login session?

Suggested Answer: D

Get Premium 102-500 Questions as Interactive Web-Based Practice Test or PDF Real Exam Format Detailed Explanations Instant Access Get Your Practice Test
33 comments · newest first
YO
Yolande 12 months ago
Removing from staff doesn't stop login, that's a myth!
MA
Maryann 1 year ago
Wait, can you really do that with chsh?
AM
Ammie 1 year ago
No way, B just gives root access!
SH
Shawn 1 year ago
I think E could work too, but not sure.
AR
Ardella 1 year ago
A is the right answer!
JU
Julie 1 year ago
I vaguely recall that removing a user from a group doesn't necessarily prevent login, so I don't think option C is the answer.
JE
Jennifer 1 year ago
I practiced a similar question, and I feel like setting the UID to 0 is definitely not the right answer. That grants root access, not restricts it.
LI
Lindsey 1 year ago
I'm not entirely sure, but I remember something about .nologin files being used to restrict access. Could it be option E?
JU
Juan 1 year ago
I think option A might be correct because changing the shell to /bin/false prevents login, right?
KA
Kaitlyn 1 year ago
I think I know the answer to this one. Running the chsh command to set the user's shell to /bin/false should prevent them from getting an interactive login session, right? That seems like the most straightforward way to block login access.
CR
Crissy 1 year ago
Okay, I've got a strategy for this. I'll eliminate the options that don't directly address login sessions, like setting the UID or removing the user from a group. Then I'll focus on the options that specifically mention login or access restrictions.
SO
Soledad 1 year ago
Hmm, I'm a bit unsure about this one. The options seem to cover different ways of restricting user access, but I'm not sure which one specifically prevents an interactive login session. I'll have to think it through step-by-step.
CA
Carey 1 year ago
This looks like a tricky Linux security question. I think the key is to find the option that prevents the user from getting an interactive login session. Let me think this through carefully.
JO
Jose 1 year ago
I'm uncertain about the details. I know it's not about stealing data like option D suggests, but I'm not clear on the differences between these answers.
RO
Roxanne 2 years ago
I think option A with the chsh command is the way to go. Changing the user's shell to /bin/false should do the trick nicely.
JU
Justine 1 year ago
↳ replying to Roxanne
User3: I think creating a .nologin file in the user's home directory is the best option.
AN
Annmarie 1 year ago
↳ replying to Roxanne
User2: But wouldn't adding the user to /etc/noaccess also work?
NG
Nguyet 1 year ago
↳ replying to Roxanne
User1: I agree, changing the shell to /bin/false will prevent interactive login.
TI
Tiara 2 years ago
Haha, option B is a classic 'trap' answer. Who would ever want to set a user's UID to 0? That's just asking for trouble!
LA
Lawrence 1 year ago
↳ replying to Tiara
True, setting the UID to 0 is definitely a bad idea.
TE
Terrilyn 1 year ago
↳ replying to Tiara
E) Create a .nologin file in the user's home directory.
SH
Sheron 2 years ago
↳ replying to Tiara
A) Run the command chsh -s /bin/false with the user name.
BR
Brice 2 years ago
I'm not sure about the correct answer, but I'm pretty sure setting the UID to 0 (option B) would make the user an administrator, not prevent them from logging in.
HA
Hana 1 year ago
↳ replying to Brice
C) Remove the user from the group staff.
PA
Paz 1 year ago
↳ replying to Brice
E) Create a .nologin file in the user's home directory.
BE
Bernardine 2 years ago
↳ replying to Brice
A) Run the command chsh -s /bin/false with the user name.
DO
Dolores 2 years ago
Option E definitely seems like the right choice to prevent a user from logging in interactively. A .nologin file in the home directory is a classic way to disable logins.
BU
Buck 2 years ago
↳ replying to Dolores
Option E definitely seems like the right choice to prevent a user from logging in interactively. A .nologin file in the home directory is a classic way to disable logins.
LE
Leontine 2 years ago
↳ replying to Dolores
E) Create a .nologin file in the user's home directory.
ME
Meaghan 2 years ago
↳ replying to Dolores
A) Run the command chsh -s /bin/false with the user name.
WI
Willow 2 years ago
I'm not sure, but I think A) Run the command chsh -s /bin/false with the user name could also prevent interactive login.
JO
Jonell 2 years ago
I agree with Karina. Creating a .nologin file would prevent interactive login.
KA
Karina 2 years ago
I think the correct answer is E) Create a .nologin file in the user's home directory.
0/2000 characters

Save Cancel