Welcome to ExamTopics
ExamTopics Logo
- Expert Verified, Online, Free.
exam questions

Exam 102-500 All Questions

View all questions & answers for the 102-500 exam

Exam 102-500 topic 1 question 55 discussion

Actual exam question from LPI's 102-500
Question #: 55
Topic #: 1
[All 102-500 Questions]

FILL BLANK -
The presence of what file will temporarily prevent all users except root from logging into a system? (Specify the full name of the file, including path.)

Show Suggested Answer Hide Answer
Suggested Answer: /sbin/nologin

Comments

Chosen Answer:
This is a voting comment (?) , you can switch to a simple comment.
Switch to a voting comment New
bogvt
Highly Voted 4 years, 8 months ago
Wrong answer. The right answer is /etc/nologin
upvoted 54 times
mustache
4 years, 2 months ago
it is a symbolic link to /sbin/nologin...
upvoted 5 times
drliu1202
2 years, 2 months ago
/etc/nologin is not a symbolic link. "What happens on login, when the file /etc/nologin contains this line of text login currently is not possible only? The message login currently is not possible will be shown, and a login is prevented." https://learning.lpi.org/en/learning-materials/102-500/110/110.2/110.2_01/#:~:text=logins%20are%20prevented.-,What%20happens%20on%20login%2C%20when%20the%20file%20/etc/nologin%20contains,not%20possible%20will%20be%20shown%2C%20and%20a%20login%20is%20prevented.,-May%20an%20ordinary
upvoted 2 times
...
...
...
aianovskii
Highly Voted 4 years, 8 months ago
yep /etc/nologin NOT /sbin/nologin
upvoted 18 times
...
poppy77
Most Recent 2 months, 3 weeks ago
/sbin/nologin
upvoted 1 times
...
rmmichael95
1 year, 3 months ago
The file that prevents login is /ect/nologin, /sbin/nologin is the command LPI-Learning-Material 102-500 Page 518: To prevent all users except the root user from logging into the system temporarily, the superuser may create the file named /ect/nologin...Note there is allso a nologin commad "sudo usermod -s /sbin/nologin user"
upvoted 2 times
...
blk_542
1 year, 4 months ago
ChatGTP: "When a user's login shell is set to /sbin/nologin, they are effectively denied interactive access to the system. However, unlike the /etc/nologin file, this restriction is applied on a per-user basis rather than system-wide."
upvoted 1 times
...
sheilawu
1 year, 5 months ago
/etc/nologin is right answer
upvoted 2 times
...
Mchoeti
1 year, 6 months ago
No sorry, if you want to block ALL temporary you will have to create the /etc/nologin If you want to block specific use /sbin/nologin Not sure. please check in your console which file is present at the moment and you will understand
upvoted 1 times
Mchoeti
1 year, 6 months ago
so the answer shoule be /etc/nologin
upvoted 1 times
...
...
KAYA2202
2 years, 3 months ago
/etc/nologin
upvoted 3 times
...
w3rr
2 years, 6 months ago
/etc/nologin
upvoted 1 times
...
Lazylinux
2 years, 6 months ago
yep /etc/nologin
upvoted 3 times
...
marenco
2 years, 7 months ago
To prevent all users except the root user from logging into the system temporarily, the superuser may create a file named /etc/nologin. This file may contain a message to the users notifying them as to why they can not login (for example, system maintenance notifications). so the answer is /etc/nologin
upvoted 4 times
...
anhcq
2 years, 11 months ago
To prevent all users except the root user from logging into the system temporarily, the superuser may create a file named /etc/nologin. This file may contain a message to the users notifying them as to why they can not login (for example, system maintenance notifications). For details see man 5 nologin. ref: https://learning.lpi.org/en/learning-materials/102-500/110/110.2/110.2_01/
upvoted 4 times
...
iwkno6
3 years, 2 months ago
Agreed that it is /etc/nologin, as the sbin one is always there. To confirm create a nologin file in /etc and lock and try to log back in.
upvoted 4 times
...
McLaba
3 years, 6 months ago
When /sbin/nologin is set as the shell, if user with that shell logs in, they'll get a polite message saying 'This account is currently not available.' This message can be changed with the file /etc/nologin.txt.
upvoted 2 times
McLaba
3 years, 5 months ago
/etc/nologin is right
upvoted 2 times
...
...
georgerobel
3 years, 8 months ago
The right answer is /etc/nologin
upvoted 1 times
...
Erwinator
4 years, 1 month ago
Just test it, if you create /etc/nologin you can only login with root
upvoted 6 times
...
Vendo
4 years, 1 month ago
The question is a bit too general... /etc/nologin. creating this we could write the reason as a message /sbin/nologin. is always there, but not active until you change the shell of a user and then /run/nologin for SSH connections. does exactly that what the question asks
upvoted 2 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...