Sample Header Ad - 728x90

How to use PAM to allow 'root' access only from local terminal?

0 votes
2 answers
2482 views
I am new to PAM and its quite complex to pinpoint a specific module or config file, thus asking this. I want to allow root access only from the console i.e if someone is physically present on that system. When someone tries any ways of remote login to root(even if he has the correct password) like ssh, telnet, etc(any means), it should not be allowed. Only when the console is accessed, the root access should be granted on correct password. How do i achieve this by using PAM ?
Asked by sword (11 rep)
Jun 6, 2023, 05:22 AM
Last activity: Apr 9, 2025, 11:08 AM