su명령어 특정사용자만 사용  -  리눅스  2015. 7. 9. 12:44

공유하기

#vi /etc/pam.d/su

#%PAM-1.0

auth            sufficient      pam_rootok.so

# Uncomment the following line to implicitly trust users in the "wheel" group.

#auth           sufficient      pam_wheel.so trust use_uid

# Uncomment the following line to require a user to be in the "wheel" group.

#auth           required        pam_wheel.so use_uid

auth            include         system-auth

account         sufficient      pam_succeed_if.so uid = 0 use_uid quiet

account         include         system-auth

password        include         system-auth

session         include         system-auth

session         optional        pam_xauth.so

auth            sufficient      /lib64/security/pam_rootok.so

auth            required        /lib64/security/pam_wheel.so debug group=wheel






#vi /etc/group

wheel:x:10:root,사용자추가



'리눅스' 카테고리의 다른 글

리눅스 메인보드 정보 확인: dmidecode  (0) 2015.07.09
centos 6 ktorrent 설치  (0) 2015.07.09
Bitstream-Vera-Sans-Mono  (0) 2015.07.08
httpd.conf  (0) 2015.07.02
apache2 설정  (0) 2015.07.02

Share to Facebook Share to Twitter Share to MySpace 다음구독 한rss구독