Select the alternative that shows the correct way to disable a user login for all users except root.
Select the alternative that shows the correct way to disable a user login for all users except root.
To disable user login for all users except root, the correct method is to use the pam_nologin module along with the /etc/nologin configuration file. This method effectively prevents normal users from logging in while allowing root access.
D is correct