|
|
pure-ftpd 를 설치 할라고 합니다.
나를 포함한 일부의 사람들이, 대다수의 사람들이 사용하는 Proftpd 가 아닌, Pure-ftpd 를 사용하는 이유는 보안에 있어서 매우 강력함을 자랑하고, 자체적으로 한글에 대한 지원이 있으며, 쉘 상에서 접속한 사용자와 위치, 화일 전송에 대한 정보 등을 알 수 있기 때문이다 라고 설명되어 있습니다.
apt-get install pure-ftpd로 설치를 진행~
############################################################
root@A20:/share# apt-get install pure-ftpd
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
openbsd-inetd pure-ftpd-common
The following NEW packages will be installed:
openbsd-inetd pure-ftpd pure-ftpd-common
0 upgraded, 3 newly installed, 0 to remove and 93 not upgraded.
Need to get 425 kB of archives.
After this operation, 942 kB of additional disk space will be used.
Do you want to continue [Y/n]? Y
Get:1 http://ftp.debian.org/debian/ wheezy/main openbsd-inetd armhf 0.20091229-2 [35.2 kB]
Get:2 http://ftp.debian.org/debian/ wheezy/main pure-ftpd-common all 1.0.36-1.1 [185 kB]
Get:3 http://ftp.debian.org/debian/ wheezy/main pure-ftpd armhf 1.0.36-1.1 [205 kB]
Fetched 425 kB in 5s (83.0 kB/s)
Preconfiguring packages ...
Selecting previously unselected package openbsd-inetd.
(Reading database ... 79152 files and directories currently installed.)
Unpacking openbsd-inetd (from .../openbsd-inetd_0.20091229-2_armhf.deb) ...
설치 후 유저 생성 및 경로 설정
pure-pw useradd <login> [-f <passwd file>] -u <uid> [-g <gid>]
-D/-d <home directory> [-c <gecos>]
[-t <download bandwidth>] [-T <upload bandwidth>]
[-n <max number of files>] [-N <max Mbytes>]
[-q <upload ratio>] [-Q <download ratio>]
[-r <allow client ip>/<mask>] [-R <deny client ip>/<mask>]
[-i <allow local ip>/<mask>] [-I <deny local ip>/<mask>]
[-y <max number of concurrent sessions>]
[-z <hhmm>-<hhmm>] [-m]
pure-pw usermod <login> -f <passwd file> -u <uid> [-g <gid>]
-D/-d <home directory> -[c <gecos>]
[-t <download bandwidth>] [-T <upload bandwidth>]
[-n <max number of files>] [-N <max Mbytes>]
[-q <upload ratio>] [-Q <download ratio>]
[-r <allow client ip>/<mask>] [-R <deny client ip>/<mask>]
[-i <allow local ip>/<mask>] [-I <deny local ip>/<mask>]
[-y <max number of concurrent sessions>]
[-z <hhmm>-<hhmm>] [-m]
pure-pw userdel <login> [-f <passwd file>] [-m]
pure-pw passwd <login> [-f <passwd file>] [-m]
pure-pw show <login> [-f <passwd file>]
pure-pw mkdb [<puredb database file> [-f <passwd file>]]
[-F <puredb file>]
pure-pw list [-f <passwd file>]
루트 권한으로
pure-pw useradd test -u ftpuser -d /home/test 를 입력을하면
암호를 입력 후
pure-pw mkdb
입력을하면
/etc/pure-ftpd 위치에
pureftpd.passwd pureftpd.pdb
root@A20:/etc/pure-ftpd# cat pureftpd.passwd
test:$1$sMcHx1k0$n4SSzzSfogkztFcQHlyvW.:1000:114::/share::::::::::::
위의 내용이 생성이 된다.
그러면
/etc/pure-ftp/auth 로 이동을 하여
심볼릭 링크
$ ln -s ../conf/PureDB 50pure
/etc/init.d/pure-ftpd restat
하여 재시작하면 화면에 보여진다.
'IT이야기 > linux' 카테고리의 다른 글
steamCmd 설치하기 (0) | 2024.06.15 |
---|---|
VNC Server 설치 (0) | 2017.07.26 |
리눅스에서 svn 디렉토리를 모두 삭제하는 방법 (0) | 2014.10.23 |
lxr 설치하기 (0) | 2014.08.06 |
masboard에서 프로그램하기 (0) | 2014.01.18 |
marsboard에서 홈서버 및 워드프레스 설치 (2) | 2014.01.03 |
masboard에서 윈도우 파일 마운트 (0) | 2014.01.01 |