Thinking Out Loud

[CentOS] root 사용자 접속 막기 본문

Linux/실습

[CentOS] root 사용자 접속 막기

주롱주롱 2021. 11. 8. 14:24

# root 사용자 접속 막기

1. 편집기 열기

# gedit /etc/pam.d/gdm-password

 

2. auth 맨 마지막 빈 줄에 다음을 추가

auth  required  pam_succeed_if.so user != root quiet

 

3. 저장 후 편집기 닫기

 

4. 재부팅

# reboot

 


참고 : 우재남, 「이것이 리눅스다 with RedHat CentOS 8」, 한빛미디어