본문 바로가기

Linux

사용자 보안 - PAM PAM (Pluggable Authentication Module) - 사용자 인증을 모듈화 하고 관리자가 응용프로그램들의 사용자 인증 방법을 선택하고 설정할 수 있다. 즉, 사용자를 인증하고 사용자의 서비스에 대한 액세스를 제어하는 모듈이다. /etc/pam.d - 어플리케이션별 pam설정 파일 위치 디렉토리 /lib/security - pam 모듈 디렉토리 ------------------------------------------------------------------- 관련 사이트 : http://kldp.org/HOWTO/html/User-Authentication-HOWTO/x106.html -------------------------------------------------------.. 더보기
사용자 보안 - 루트권한 제한(sudo) 루트 권한 제한 (sudo) - 인증받은 사용자가 특정 명령을 root 권한으로 실행하는 명령어 이다. /etc/sudoers - sudo 명령을 내릴 수 잇는 사용자와 명령을 정희한 파일로 편집하려면 visudo 명령을 사용해야 한다. visudo - /etc/sudoers 파일을 수정하는 명렁어 이다. 1. sudoers 파일 수정 [root@server3 ~]# vi /etc/sudoers - vi 편집기로는 /etc/sudoers 파일을 수정할 수 없다. read-only 파일이기 때문이다. [root@server3 ~]# visudo test1 ALL=/usr/sbin/useradd, /usr/bin/passwd - 추가해준다. 참고 - %를 이용하면 그룹지정을 할 수 있다. ex) %users.. 더보기
사용자 보안 - 패스워드 크랙 패스워드 크랙 - john the ripper ------------------------------------------------------------------- http://www.openwall.com/john/ john-1.7.0.2.tar.gz : (다운로드) ------------------------------------------------------------------- 1. 압축 해제 [root@server3 ~]# cd Desktop [root@server3 Desktop]# ls john-1.7.0.2.tar.gz [root@server3 Desktop]# tar xvfz john-1.7.0.2.tar.gz john-1.7.0.2/ john-1.7.0.2/src/ john-1... 더보기
제로보드 XE 설치 제로 보드 XE 를 설치하기 전에 ------------------------------------------------------------------- 1. GD 라이브러리가 설치되어 있어야 한다. ( 참조 : GD 라이브러리 설치 ) 2. MySQL의 User와 DB를 생성해 준다. ( 참조 : 1-3. 제로보드 설치전 설정 (2) ) 3. 제로보드 XE ( 다운로드 ) ------------------------------------------------------------------- 1. 제로 보드 XE 압축 해제 [root@server3 xe]# pwd /root/Desktop/xe [root@server3 xe]# tar xvfz xe.full.1.1.5.tgz - 제로보드 xe를 다운 .. 더보기
GD라이브러리 설치 GD라이브러리 설치 순서 1. zlib 설치 2. png 설치 3. jpeg 설치 4. freetype 설치 5. gd 설치 ------------------------------------------------------------------- 1. zlib 다운로드 (zlib-1.2.3.tar.gz) : http://www.zlib.net/ 2. png 다운로드 (libpng-1.2.34.tar.gz) : http://www.libpng.org/pub/png/libpng.html 3. JPEG 다운로드 (jpegsrc.v6b.tar.gz) : http://quox.org/install/graphics/jpeg-6b.html 4. freetype 다운로드 (freetype-2.3.8.tar.gz) : .. 더보기
시스템 보안 - Kernel tuning 1. ping 에 의한 icmp 패킷 응답 여부를 설정 - 공격자들은 ping을 통한 icmp 패킷의 응답을 통하여 대상 시스템을 확인한다. 또 ping 명령으로 DOS 공격도 가능하다. 그러므로 관리자는 icmp 패킷을 무시하도록 하는 것이 좋다. [root@server3 ~]# cat /proc/sys/net/ipv4/icmp_echo_ignore_all - 기본 설정값은 0 이다. 0 [root@server3 ~]# ping 10.10.33.101 - ping을 보내면 응답이 온다. PING 10.10.33.101 (10.10.33.101) 56(84) bytes of data. 64 bytes from 10.10.33.101: icmp_seq=1 ttl=64 time=1.76 ms 64 bytes.. 더보기
시스템 보안 - Immutable Bit 설정 Immutable Bit 설정 - chattr & lsattr (파일 속성 설정) - 리눅스 사용시 중요한 파일들을 관리자라도 실수로 삭제하는 것을 방지하기 위해 immutable bit 속성을 부여해준다. 1. man chattr & man lsattr # man chattr 이름 : chattr - 리눅스 개정판 확장 화일시스템 상의 화일 속성 변경 개요 : chattr [ -RV ] [ -v 버전 ] [ 모드 ] 화일들... 설명 : chattr 은 개정판 확장 화일시스템의 화일 속성을 변경한다. 심볼릭 모드의 형식은 +-=[Sacdisu] 이다. ‘+’ 연산자는 주어진 속성을 현재 화일의 속성에 추가한다. ‘-’ 연산자는 속성을 제거한다. ‘=’ 연산자는 화일이 갖는 속성을 오로지주어진 속성만 갖.. 더보기
Proxy Server - Squid Proxy Server 설치 1-1. squid rpm 설치 [root@server3 named]# rpm -qa | grep squid [root@server3 Desktop]# ls squid-2.6.STABLE6-5.el5_1.3.i386.rpm [root@server3 Desktop]# rpm -Uvh squid-2.6.STABLE6-5.el5_1.3.i386.rpm 준비 중... ########################################### [100%] 1:squid ########################################### [100%] 1-2. squid yum 설치 [root@server3 Desktop]# yum install squid* 3. 설치 확인.. 더보기
Linux directory structure / - Root directory that forms the base of the file system.All files and directories are logically contained inside the rootdirectory regardless of their physical locations. /bin - Contains the executable programs that are part of theLinux operating system. Many Linux commands, such as cat, cp, ls, more,and tar, are locate in /bin /boot - Contains the Linux kernel and other files needed by LILO a.. 더보기
PHPMyAdmin - blowfish_secret 해결방법 PHPMyAdmin - blowfish_secret 해결방법 http://www.server3.co.kr/phpmyadmin 에 접속했을 경우 아래와 같은 경고 문구가 나타난다. http://www.server3.co.kr/phpmyadmin 에 로그인 했을 경우 아래와 같은 경고 문구가 나타난다. The configuration file now needs a secret passphrase (blowfish_secret). ------------------------------------------------------------------- phpmyadmin 환경설정파일 경로 /usr/local/apache/htdocs/phpmyadmin/libraries/config.default.php 이 파일.. 더보기