An administrator sets the login shell of the account appsvc to /sbin/nologin. What is the effect?
Show the answer
Correct answerD. Interactive logins fail, but the account can own files and run processes
AWhy not this: Only the shell changes; the password is not locked and running processes keep running.
BWhy not this: nologin is the login shell for every interactive login, so console logins are refused as well as SSH.
CWhy not this: The account stays in /etc/passwd; only its shell field changes to /sbin/nologin.
DWhy this is right: Nologin ends any interactive login, but the account still exists to own files and run services.
/sbin/nologin as the login shell ends any interactive login attempt with a message, but the account still exists, so it can own files and run services or jobs. The tempting view that this deletes or disables the account itself is wrong, because only the shell is replaced.