본문 바로가기

[SSH] 접속 호스트 및 아이디 기반으로 SSH를 운영 할 때 1. /etc/ssh/sshd_config 파일 내용 변경 HostbasedAuthentication yes EnableSSHKeysign yes HostbasedAuthentication yes IgnoreRhosts no 더보기
[SSH] PAM 사용 시, SSH 접속 허용 설정방법 1. 접속 컨트롤 방식 확인 [root@localhost] # lssec -f /etc/security/login.cfg -s usw -a auth_type usw auth_type=STD_AUTH 2. 접속 컨트롤 방식을 PAM으로 변경 [root@localhost] # chsec -f /etc/security/login.cfg -s usw -a auth_type=PAM_AUTH 3. /etc/pam.conf 파일의 "authentication" 항목에 다음 추가 sshd auth required /usr/lib/security/pam_aix 4. /etc/pam.conf 파일의 "account" 항목에 다음 추가 sshd account required /usr/lib/security/pam_aix 5.. 더보기
[THREAD] 쓰레드 갯수 구하기 1. 다음 명령어 사용 ps -mp PID -o THREAD 2. 예제 [localhost:root] # ps -mp 1036522 -o THREAD 더보기
[/var/preserve] What is /var/preserve on AIX? ex나 vi 같은 에디터 사용 중, 해당 세션이 크래쉬가 생긴 경우 생성되는 덤프파일 저장소이다. 사용자가 "-r" 옵션을 사용하여 해당 파일(Ex******)을 추후에 복구 시킬 때 사용된다. 복구 할 필요가 없는 파일들은 삭제해도 무방하다. 그러나 디렉토리 자체를 삭제하면 안된다. It's the preservation directory for ex and vi. When an editor session crashes, a dump file is created in /var/preserve. Users can then recover the files using the "-r" flag. They can list saved files by using "-r" with no arguments. They .. 더보기
[history] How to use the timestamp in command history file on AIX 5.3 with Korn Shell 0. I checked that this works in AIX 5.3 TL08 with Korn Shell (I've known that It works on AIX 5.3 or above) 1. You can simply use the timestamp in ~/.sh_history or history command with turning on the EXTENDED_HISTORY. - add this in /etc/profile or ~/.profile export EXTENDED_HISTORY=ON 2. If you want to see the timestamp, then use this command [localhost:root] # history -t 2061 2011/01/31 16:10:4.. 더보기