isms 3

Rocky 8, Rocky 9 보안 취약점 기본 조치 스크립트

아래 스크립트를 복붙하여 실행하거나 별도의 shell 로 만들어 활용 #1. pwquality 점검 mv /etc/security/pwquality.conf /etc/security/pwquality_old.conf echo -e "minlen = 8\ndcredit = -1\nucredit = -1\nlcredit = -1\nocredit = -1\n" | cat - /etc/security/pwquality_old.conf > /etc/security/pwquality.conf rm -f /etc/security/pwquality_old.conf #2. faillock 설정 (10번 이상 로그인 실패시 10분간 차단)authselect select sssd --force authselect enabl..

OS/CentOS&Rocky 2026.03.20

CentOS 7 보안 취약점 기본 조치

#1. pwquality 점검 mv /etc/security/pwquality.conf /etc/security/pwquality_old.conf echo -e "minlen = 8\ndcredit = -1\nucredit = -1\nlcredit = -1\nocredit = -1\n" | cat - /etc/security/pwquality_old.conf > /etc/security/pwquality.conf rm -f /etc/security/pwquality_old.conf #2. 계정 잠금 설정 centos 7 sed -i '/auth\s\+required\s\+pam_env.so/a auth        required      pam_faillock.so preauth silent audit..

OS/CentOS&Rocky 2024.11.14

Oracle 계정 암호 갱신 스크립트 (변경 주기에 따른)

계정 잠김 방지 등 개인적인 필요에 의해 만든 것이며, 개발DB 등에서 충분한 테스트 후 적용해 볼 수 있습니다. 1. shell script (상단 export는 필요에 따라 변경)#!/bin/bashTARGET_DB=$(echo "$1" | tr '[:upper:]' '[:lower:]')VALID_DB=("DB1", "DB2", "DB3")if [[ ! " ${VALID_DB[@]} " =~ " $TARGET_DB " ]]; then echo "Error: Invalid DB" exit 1fiexport ORACLE_BASE=/oracleexport ORACLE_HOME=/oracle/product/19Cexport PATH=$PATH:$ORACLE_HOME/binexport ORACLE_SID..

DB 2024.11.08