[root@localhost ~]# vi /etc/pam.d/su
1 #%PAM-1.0
2 auth sufficient pam_rootok.so
3 # Uncomment the following line to implicitly trust users in the "wheel" group.
4 #auth sufficient pam_wheel.so trust use_uid
5 # Uncomment the following line to require a user to be in the "wheel" group.
6 #auth required pam_wheel.so use_uid
7 auth include system-auth
8 account sufficient pam_succeed_if.so uid = 0 use_uid quiet
9 account include system-auth
10 password include system-auth
11 session include system-auth
12 session optional pam_xauth.so
~
6번 LINE을 주석처리하면 su 명령어 정상 작동
'Linux' 카테고리의 다른 글
Linux Directory 구조와 각 Directory 용도 (0) | 2020.06.29 |
---|---|
Linux Mastar (0) | 2019.12.08 |
[About] crontab (리눅스 스케줄러) (0) | 2019.07.31 |
find 명령어를 사용하여 경로 찾기 (0) | 2019.07.09 |