Get Unlimited Contributor Access to the all ExamTopics Exams!
Take advantage of PDF Files for 1000+ Exams along with community discussions and pass IT Certification Exams Easily.
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.)
/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
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"
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."
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
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
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/
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.
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
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.
bogvt
Highly Voted 4 years, 2 months agomustache
3 years, 8 months agodrliu1202
1 year, 8 months agoaianovskii
Highly Voted 4 years, 2 months agormmichael95
Most Recent 8 months, 3 weeks agoblk_542
10 months, 2 weeks agosheilawu
11 months agoMchoeti
1 year agoMchoeti
1 year agoKAYA2202
1 year, 9 months agow3rr
1 year, 11 months agoLazylinux
1 year, 12 months agomarenco
2 years, 1 month agoanhcq
2 years, 4 months agoiwkno6
2 years, 8 months agoMcLaba
3 years agoMcLaba
2 years, 11 months agogeorgerobel
3 years, 1 month agoErwinator
3 years, 6 months agoVendo
3 years, 7 months agoThi_86
3 years, 7 months ago