centos5 curl 버전 업그레이드
# Operation System/Linux2020. 3. 26. 10:59centos5 curl 버전 업그레이드

1 2 3 4 5 6 7 8 9 10 11 12 # curl --version curl 7.15.5 (i386-redhat-linux-gnu) libcurl/7.15.5 OpenSSL/0.9.8b zlib/1.2.3 libidn/0.6.5 Protocols: tftp ftp telnet dict ldap http file https ftps Features: GSS-Negotiate IDN IPv6 Largefile NTLM SSL libz # wget https://curl.haxx.se/download/curl-7.69.1.tar.gz # ./configure --with-ssl=/usr/local/ssl --disable-ldap # make # make install Colored by Color..

centos5 openssl 버전 업그레이드
# Operation System/Linux2020. 3. 26. 10:58centos5 openssl 버전 업그레이드

버전확인 [darksharavim.tistory.com] openssl version OpenSSL 0.9.8e-fips-rhel5 01 Jul 2008 [darksharavim.tistory.com] wget https://www.openssl.org/source/old/1.0.2/openssl-1.0.2u.tar.gz [darksharavim.tistory.com] ./config --prefix=/usr/local/ssl --openssldir=/usr/local/ssl shared [darksharavim.tistory.com] make && make install [darksharavim.tistory.com] vi /etc/ld.so.conf #아래내용 추가 /usr/local/ssl/lib ..

vsftpd접속시 xfs 쿼터설정된 사용자별 용량표기 스크립트
# Operation System/Linux2020. 3. 20. 16:01vsftpd접속시 xfs 쿼터설정된 사용자별 용량표기 스크립트

vsftpd.conf dirmessage_enable=YES 위 옵션이 활성화 되어 있어야합니다. 그러면 ftp접속시 사용자 홈폴더에 있는 .message파일안에 있는 내용을 디스플레이해줍니다. script #!/bin/bash arr=(`cat /etc/projects | awk -F: '{print $2}'`) for((i=0;i $user_msg done

xfs_quota: cannot set limits
# Operation System/Linux2020. 3. 13. 15:17xfs_quota: cannot set limits

xfs_quota: cannot set limits: 함수를 구현하지 않았습니다 mount정보 확인해보니 pquota옵션이 빠져있었음. # 해결방법 fstab을 수정해서 재부팅하거나 remount하는 방법 $ mount --options remount [마운트정보] 테스트해보니 remount는 안먹혀서 결국 재부팅함 ㅜ

centos5 fail2ban 설치
# Operation System/Linux2020. 3. 6. 14:26centos5 fail2ban 설치

yum설치# yum -y install fail2ban# cd /var/log# touch vsftpd.log# chkconfig fail2ban on22. 5. 13일 기준 centos5에서 yum 설치시 에러발생(M2Crypto.SSL.SSLError: unknown protocol)또는 source설치# wget https://github.com/fail2ban/fail2ban/archive/0.8.14.tar.gz# tar -xvzf 0.8.14.tar.gz# cd fail2ban-0.8.14# setup.py install# cp files/redhat-initd /etc/init.d/fail2ban# chkconfig --add fail2ban# chkconfig fail2ban onhttps..

image