52AV璈A|52AV.ONE

 曉撖蝣
 蝡唾酉
敹急瑕
  • av隢憯BBS
  • 璈A
  • 芣瑟憭瘚
  • 鞎澆
  • 52av鋆貉摰
  • 銝剜-銝剖銝餅
Yahoo!憟拇撠
望: 璈A
Google憟拇撠
望: 璈A
     
亦: 3917|敺: 0
銝銝銝駁 銝銝銝駁

[ftp] Centos 銝隞 Yum 摰鋆 Pure-ftpd ftp client

[銴鋆賡包
頝唾唳摰璅撅
璅銝
潸” 2015-10-30 22:13:17 | 芰閰脖 撣 |摨閬 |梯璅∪
:5 h# u9 P1 R% M2 U( Q; E
http://www.111cn.net/sys/CentOS/88456.htm
( s% d0 J( |) H# c5 Q# Shttps://www.centos.bz/2011/03/centos-pureftpd-install/$ ^% d! F2 @$ q) Q; z* h

$ }7 o3 y; D$ {# }( ~+ _餈Yum摰鋆Pure-ftpd霂衣甇仿炊憒銝嚗3 r, C* P5 N% ]6 q9 h

/ i$ `% p0 s2 X' Z甇仿炊銝:蝵座um皞隞乩舫撠 CentOS 6.X
! Z# G9 ?+ ~: n4 u1 g憭隞(憒蝵桀嗡epel皞)3 O; Y1 x% l& C  |2 [& G" y
mv /etc/yum.repos.d/epel.repo /etc/yum.repos.d/epel.repo.backup# a# y0 @+ w7 s+ [# D- |1 D
銝頧賣郢epo /etc/yum.repos.d/
- Q; \, l& B* U+ b/ f9 V& awget -O /etc/yum.repos.d/epel.repo http://mirrors.aliyun.com/repo/epel-6.repo
2 x1 ?  J' u/ F, X, i: S& i6 oyum makecache
  @3 E% [2 A# g" O7 q
5 z3 \0 t0 a' S+ ~6 {1 ~隞乩舫撠 CentOS 5.X9 T# L4 I9 h, o: s! ]
cd /etc/yum.repos.d/( g( X# L; B& F
wget http://centos.karan.org/kbsingh-CentOS-Extras.repo
/ x' V9 M6 z8 r7 V  a+ e) H9 l( N% x' M8 W3 }% I* x% b8 ~
敹瞈瘣蝕bs-CentOS-Testing摨怒kbsingh-CentOS-Extras.repo隞塚enabled=0寞enabled=1
3 Z/ |4 u$ N7 {) j% ?! evi kbsingh-CentOS-Extras.repo
. l. c" D( A) b
  1. [kbs-CentOS-Testing]
  2. name=CentOS.Karan.Org-EL$releasever - Testing
  3. gpgcheck=1
  4. gpgkey=http://centos.karan.org/RPM-GPG-KEY-karan.org.txt
  5. enabled=1
  6. baseurl=http://centos.karan.org/el$releasever/extras/testing/$basearch/RPMS/
銴鋆賭誨蝣
亦撠乎PG key啗隞嗅澈
  1. rpm --import http://centos.karan.org/RPM-GPG-KEY-karan.org.txt
銴鋆賭誨蝣
憒甇仿銝憭望閰,雿輻其誑銝隞:
& O2 O6 e: v5 A6 c* |6 ^
rpm -Uvh ftp://ftp.trychlos.org/pub/CentOS/6.3/pcalfs/x86_64/RPMS/epel-release-6-7.noarch.rpm  (CentOS 6.7)! \  _" j" Q0 \: l6 C' \; V
銝臭誑CentOS 6.7,憒浚entOS 6.8 狂oogle 撠 epel-release-6-8.noarch.rpm頛暺,隞交迨憿# C0 {5 H% X4 z& @+ s8 J1 j6 V

; y; N& [8 F9 }# p, A甇仿炊鈭:yum摰鋆0 Z7 r. r6 H0 x5 D& J- \7 n/ N
yum install pure-ftpd -y
7 q: l1 V: n* [* S: }) B: a, g) P* g; z9 U0 t4 T
甇仿炊銝:靽格寥蝵格隞$ W" P( |5 t2 b4 _, v
vim /etc/pure-ftpd/pure-ftpd.conf
$ ]! F9 N7 e$ v# T
* e  ^1 G4 N- Q6 ^3 g$ U# hPureDB /etc/pure-ftpd/pureftpd.pdb
/ s' P  l0 {4 a" G2 o, a) W#餅餈銵瘜券嚗摰頝臬嚗PureDB冽唳桀( f' L& p$ r& B0 x2 l
VerboseLog yes
! [2 u& S3 ?1 U. v5 f% d/ B#撘舀亙  /var/log/pureftpd.log
. k9 A. l1 w# _# I6 B% p6 v$ J0 QNoAnonymous yes- E1 k+ ~8 i6 H2 J( }
#蝏踹冽瑞餃4 a. D" V4 l( r. S, ?9 e9 P8 ^7 c
PassivePortRange 48000 50000
% Q& d" k! f! A+ x9 X+ X#雿輻刻◤冽芋撘嚗嗥垢
; `0 @! c" Y& p5 _5 b% v; D  C) }7 G2 A& Y

8 c1 H' u% A, C2 F- X: d2 p& O0 N+ M
甇仿炊:蝵桅脩怠蝑
2 u' I2 E; K% k7 X; D8 Liptables -A INPUT -p tcp --dport 21 -j ACCEPT! a; w# g. z& S6 e5 L7 u& l  Z
iptables -A INPUT -p tcp --dport 48000:50000 -j ACCEPT
4 i& E+ N2 j* B! g  c- s0 F2 [' l$ `/ ?* f# `+ W, \# ?! U4 A
甇仿炊鈭:臬私ure-ftpd
4 \  J8 J; F, _# g( |- M* Nchkconfig pure-ftpd --level 345 on (閮剖瘥甈⊿璈芸瑁)& m* h& P/ y+ E4 L5 p5 Y# s
憒曆軏hkconfig,which chkconfig 臭誑曉啣桅雿蝵,銝祆閰脣/sbin,憒/sbin銋瘝銵函內瘝摰鋆chkconfig" H+ g% a& X: V5 o+ v
yum install chkconfig 摰鋆chkconfig+ w+ X7 M% f) O; u$ }* P
憒摰鋆摰銋 chkconfig: command not found+ c; [  Z9 l6 Y( j% |8 P6 J
銝蝯  
& h# a# Y7 ]& G8 {" B* Jln -s /sbin/chkconfig /usr/bin/
% K4 |8 P4 [! ^; ~/ Y
& A+ f* {" l9 v# T7 W. u$ L
/etc/init.d/pure-ftpd start     service pure-ftpd start雿輻冽蝣澆鋆隢 http://www.111cn.net/sys/CentOS/88456.htm憒 service pure-ftpd start  銋憿舐內 service: command not found  Y$ W. K( @% N2 y! n; }) u
銋雿銝蝯2 x* m1 f. t; o" a) c( J
ln -s /sbin/service /usr/bin/
: k% [0 h' @2 a" g
3 |$ A3 ]# c" @$ D. e摰鋆 ftp client :1 j/ ^) V4 _0 n+ a! G
yum install ftp -y
. T, p# [  `& o

  g* q: Z6 S4 Q; T& q# K! [7 s閮:
! u, |. Q" J" D- v- O4 X
+ P6 J, e: ]: z6 d0 u& ~4 |3 S& k4 k+ x
1.
7 C7 ]) @/ `8 G( R
when login ftp show error:
" ]5 I: ]! C) C- p2 Z# {530 Login authentication failed) x: @2 U" O7 s2 J, u' `, G
Login failed.
: ^1 }, i2 e% i6 M; U. |' Q" d9 J4 B& T

! O) D" f3 j3 ~9 }' q- r' T. j! W: Icheck /var/log/secure7 n( r  ^( t, w1 [4 B* A$ S6 H2 t; T0 o
Nov  3 10:03:44 DLTB-2475 pure-ftpd: pam_listfile(pure-ftpd:auth): Couldn't open /etc/ftpusers7 u8 y8 M5 |. Q8 l
Nov  3 10:03:44 DLTB-2475 pure-ftpd: PAM audit_log_acct_message() failed: Operation not permitted( d. k% [# y) ?' T
- v5 u% @* Z8 l* x2 Q0 m
Sol:
6 O, F. F4 m# jvi /etc/pure-ftpd/pure-ftpd.conf+ L) A1 A; ]+ F7 \
撠PAMAuthentication 隤霅寞 UnixAuthentication隤霅 ,: Y6 r3 B, Q3 l( e
#PAMAuthentication             yes  閮餉圾
2 x6 M+ j0 q# X5 YUnixAuthentication            yes  瘨閮餉圾
# ~) v( N/ b" r6 gservice pure-ftpd restart
9 }. k( j( ?- B& `' m0 R7 y
7 i6 N, z) J3 N% ^5 l% _2.
1 W. Y2 d' V- W, `When login ftp server from remote host show errors:3 F" e( P& B. h5 n) V/ a1 e' g
connect: No route to host5 ]" h3 P1 K, _3 N$ N/ s
舫脩怎雿鈭,iptable瘝⊥閮胤AT,SOL:
/ h* q. I' b4 p. Hstop iptables or 拍嗉身摰 iptables 9 R2 s  Q! `( b9 X
, P* B6 F3 _! z- v7 h9 s
vi /etc/sysconfig/iptables-config
# W3 ~5 P- W& x! t1 _6 j' b# T湔 IPTABLES_MODULES= IPTABLES_MODULES=ip_nat_ftp ip_conntrack_ftp
$ h, S, e) z6 [7 U& Vservice iptables reload' q( h; G. Z: f1 D  l* V, H
; D$ |6 N8 V3 a
3.# r( f  C! w; Q: n$ s
421 Unable to read the indexed puredb file (or old format detected) - Try pure-pw mkdb
# h7 V3 w7 u' S8 T! {Login failed.
; H7 @1 R0 P' t+ `7 h
1 G5 ^- o7 r' _) j/ KSOL:! x  A  w2 o+ k- `# O" R
vi /etc/pure-ftpd/pure-ftpd.conf
; _' \& X5 [+ I. ?: g/ {$ jPureDB /etc/pure-ftpd/pureftpd.pdb 閮餉圾
: ?- y, g8 d  K/ N6 [0 `5 E4., `( f+ ^4 I% G; ]. V8 e
ftp> put file
! ]5 l1 r: p$ r+ S3 F, klocal: file remote: file
- K6 i4 O( B. b0 b$ W# r. Z5 I& M" Z7 x227 Entering Passive Mode (122,117,11,31,193,78)
( k# S3 {4 P+ T6 J553 Can't open that file: Permission denied
# I, H' e, {6 r
) ]8 J" W# e/ J' p' E9 B5 uSOL:
0 f* a; S$ s. c( |ls -l /home/user1( x) _+ A5 k, ^  Y4 J2 D
drwxr-xr-x. 2 root root 4096 2016-01-17 04:46 user1
# B4 V0 r# p; j+ D3 echown user1:user1 /home/user1" c; ?1 d) ^6 Y5 ]' z

, |. S. Y" O5 t4 _[ftp 隞也
( u; m. ?" e' [0 wlcd 寡local桅8 r0 m- ^' o- i. B# _
lls  亦local桅瑼獢 (蝑 !ls)
1 m: @( ~- l7 f
4 r6 o& Q! `6 Y1 ~2 v- o: g

8 e7 l4 ]7 q* O8 L. z9 j. W' ^$ c6 R4 K3 _
) |2 S3 n$ J5 @- f  O

雿輻券

祉蝛閬

BT蝳

砍憛批捆靘餉衣雯頝臬批捆蝝颲行粹嗥蝬脩嚗摰撟湔遛嚗嚗甇脖誑銝嗅啣摰嗆摰撟湧翩鈭箏ㄚ孵舫脣伐銝憿亙祉璇甈橘芣遛18甇 雓蝯脣亦閬賬粹脩芣遛18甇脖芣撟渡雯閬賜雯頝臭嗥批捆鞈閮嚗撱箄降典舫脰蝬脰楝批捆蝝蝯蝜ICRA蝝摰鋆閮剖 (粹蝯行霅 祉蝬脣銝蝝瘛函隢憯啣嚗祉閮剜蝞∠)

QQ|撠暺撅||52AV璈A

GMT+8, 2024-11-22 01:31 , Processed in 0.072181 second(s), 16 queries .

蝯∠.撱

52avtv@gmail.com | QQ:2405733034     since 2015-01

鋆貉憒 敹恍敺 餈銵