User Tools

Site Tools


ubuntu:pam:restrict_root_access_to_ssh_service

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
ubuntu:pam:restrict_root_access_to_ssh_service [2019/12/01 13:05] – created peterubuntu:pam:restrict_root_access_to_ssh_service [2020/07/15 09:30] (current) – external edit 127.0.0.1
Line 6: Line 6:
  
 We can use the **/lib/security/pam_listfile.so** module which offers great flexibility in limiting the privileges of specific accounts. We can use the **/lib/security/pam_listfile.so** module which offers great flexibility in limiting the privileges of specific accounts.
 +
 +----
 +
 +===== Configure a PAM config file for the service to be restricted =====
  
 Open and edit the file for the target service in the **/etc/pam.d/** directory as shown. Open and edit the file for the target service in the **/etc/pam.d/** directory as shown.
Line 20: Line 24:
  
 ---- ----
 +
 +===== Add PAM rule =====
  
 Add this rule in both files. Add this rule in both files.
ubuntu/pam/restrict_root_access_to_ssh_service.1575205503.txt.gz · Last modified: 2020/07/15 09:30 (external edit)

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki