Red_Hat
RH302 · Question #182
143: You are the administrator of example.com domain. Configure to deny local login to all normal users on your domain server. As well as allow to root login only on First Terminal.
1. touch /etc/nologin 2. vi /etc/securetty comment all available terminall then first. If /etc/nologin file is created, then pam modules pan_nologin deny to all non-root users to login locally. /etc/pam.d/login file calls the module. #%PAM-1.0 auth required pam_securetty.so…
Security
Question
143: You are the administrator of example.com domain. Configure to deny local login to all normal users on your domain server. As well as allow to root login only on First Terminal.
Explanation
- touch /etc/nologin
- vi /etc/securetty comment all available terminall then first. If /etc/nologin file is created, then pam modules pan_nologin deny to all non-root users to login locally. /etc/pam.d/login file calls the module. #%PAM-1.0 auth required pam_securetty.so auth required pam_stack.so service=system-auth auth required pam_nologin.so account required pam_stack.so service=system-auth password required pam_stack.so service=system-auth
pam_selinux.so close should be the first session rule
session required pam_selinux.so close session required pam_stack.so service=system-auth session optional pam_console.so
pam_selinux.so open should be the last session rule
session required pam_selinux.so multiple open
Topics
#PAM#securetty#login restriction#local access control
Community Discussion
No community discussion yet for this question.