=> useradd 계정명

=> passwd

=> 패스워드입력

=> 재입력


=> vi /etc/pam.d/su

#auth required pam_wheel.so use_uid

주석해제


=> vi /etc/group

wheel:x:10:root,계정명

=> vi /etc/ssh/sshd_config
#PermitRootLogin yes
주석 풀고 no / PermitRootLogin no


/etc/rc.d/init.d/sshd restart

로그인 유지 상태로 새로운 푸티 실행

root 계정 접속 시도 ,  => Access denied
새로운 계정명 접속 시도 , 
=> su -
=> 비밀번호 재입력.




+ Recent posts