|
1. /etc/group 에서 wheel 그룹에 su 명령어를 사용할 사용자 추가 ( , 를 사용하여 추가하면 됨)
2. /etc/pam.d/su 파일에서 다음과 같이 두줄 추가 auth sufficient /lib/security/pam_rootok.so auth required /lib/security/pam_wheel.so allow group=wheel
3. /var/log/messages 파일에 su 허용된 사용자와 허용되지 않은 사용자가 su 명령어를 사용했을때 나타나는 기록
a. 허용하지않은 자 (ex. hack) Mar 14 16:34:25 kebia_l PAM_Wheel[1831]: Access denied for 'hack' to 'root'
b. 허용된자 (ex. server) Mar 14 16:34:53 kebia_l PAM_Wheel[1860]: Access granted to 'server' to 'root'
|
http://kr.blog.yahoo.com/fxpnfo/trackback/2596944/875067