글
설치
yum install vsftpd
설정파일
/etc/vsftpd/vsftpd.conf
설정하기
1. 단순하게 사용자 계정에 chroot 설정
chroot_local_user=YES2. 특정 사용자만 chroot 설정
chroot_list_enable=YES3. 특정 사용자를 제외한 나머지 사용자만 chroot 설정
chroot_list_file=/etc/vsftpd/chroot_list
chroot_local_user=YES4. 계정마다 동적으로 설정할 경우
chroot_list_enable=YES
chroot_list_file=/etc/vsftpd/chroot_list
chroot_local_user=YES이런식으로 하면 /etc/passwd 파일을 참고하여 chroot 를 설정할 수 있다.
passwd_chroot_enable=YES
아래와 같은 형태로 passwd 파일을 셋팅하면 "." 이 있는곳이 루트 디렉토리가 된다.
cranix:x:500:500::/home/./cranix:/bin/bash
'알짜정보 > Linux server' 카테고리의 다른 글
cent os 런레벨 (30) | 2011.01.02 |
---|---|
cent os chkconfig 이용해서 시작프로그램 등록하기 (61) | 2011.01.02 |
cent os apache virtual host 설정 (18) | 2011.01.02 |
cent os php 설치 (35) | 2011.01.02 |
cent os mysql 설치 (30) | 2011.01.02 |
RECENT COMMENT