52AV璈A|52AV.ONE

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

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

[銴鋆賡包
頝唾唳摰璅撅
璅銝
潸” 2015-10-30 22:13:17 | 芰閰脖 撣 |摨閬 |梯璅∪
:
, F2 l  S, l& W& V  V, Shttp://www.111cn.net/sys/CentOS/88456.htm
, g+ T  ^% V, Jhttps://www.centos.bz/2011/03/centos-pureftpd-install/9 ?* v0 S! ^- k$ E% O
4 W2 j7 W1 _1 Y8 `
餈Yum摰鋆Pure-ftpd霂衣甇仿炊憒銝嚗
: m$ h  r" j% H6 S
+ U7 k2 h, l. Q  C$ W+ @- @甇仿炊銝:蝵座um皞隞乩舫撠 CentOS 6.X- O7 W8 F! M1 U; x5 a
憭隞(憒蝵桀嗡epel皞)1 X6 {7 e7 S: G, n' ?( _& [
mv /etc/yum.repos.d/epel.repo /etc/yum.repos.d/epel.repo.backup& @7 O6 F& H% @' |- S3 z
銝頧賣郢epo /etc/yum.repos.d/( u3 w$ z* x' t0 y
wget -O /etc/yum.repos.d/epel.repo http://mirrors.aliyun.com/repo/epel-6.repo% Q  R) Q; Y% M( L5 Q1 l) \
yum makecache
7 ^6 g6 q$ U7 a$ b9 @6 u8 d( k  H+ E6 [$ \. H) M' Y
隞乩舫撠 CentOS 5.X/ Q- f9 E6 m5 w9 J8 k: Z
cd /etc/yum.repos.d/
) W* Y5 ~. Z2 u2 t  gwget http://centos.karan.org/kbsingh-CentOS-Extras.repo
3 F0 p: }7 D1 [! b6 J- D* x
1 H- B. u( N) H/ }+ k敹瞈瘣蝕bs-CentOS-Testing摨怒kbsingh-CentOS-Extras.repo隞塚enabled=0寞enabled=19 O2 Q* ~* ?+ t' Q  d8 s( n
vi kbsingh-CentOS-Extras.repo7 f0 D2 f0 F4 ]/ r+ G. S9 k$ S
  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
銴鋆賭誨蝣
憒甇仿銝憭望閰,雿輻其誑銝隞:. ?1 H9 r# p3 i- ^3 X* P: B6 i
rpm -Uvh ftp://ftp.trychlos.org/pub/CentOS/6.3/pcalfs/x86_64/RPMS/epel-release-6-7.noarch.rpm  (CentOS 6.7)
' Z4 i7 N/ o- A" v
銝臭誑CentOS 6.7,憒浚entOS 6.8 狂oogle 撠 epel-release-6-8.noarch.rpm頛暺,隞交迨憿! Y  l& Y- E: |) R0 @

5 r1 I2 `; m$ @' w) ]4 ~, b甇仿炊鈭:yum摰鋆
- K5 Q" `" T- `- a5 x& {' Tyum install pure-ftpd -y
5 H( _) ^6 \8 V$ |( h4 Z2 S+ C, v2 r3 l) j- {/ ?8 o
甇仿炊銝:靽格寥蝵格隞' l4 s) J4 d- }3 ^
vim /etc/pure-ftpd/pure-ftpd.conf" Q; M/ r1 x( B3 f
  L- g# ?6 t8 k. C, b
PureDB /etc/pure-ftpd/pureftpd.pdb3 P$ Q/ U: m- v
#餅餈銵瘜券嚗摰頝臬嚗PureDB冽唳桀" N; I' \; f! E4 o% c* j- a
VerboseLog yes" ?9 b9 V4 n- N" O8 d9 F
#撘舀亙  /var/log/pureftpd.log
' @- r4 r0 G0 T  FNoAnonymous yes& a& f6 u. c4 T
#蝏踹冽瑞餃
) @, _* e2 s$ I) {/ m0 RPassivePortRange 48000 50000
% E  M4 d- d: r! T  d3 A#雿輻刻◤冽芋撘嚗嗥垢. C# q9 u' x6 [: ?0 {
+ d7 a; a0 d7 x9 b6 h
: ?" l6 c. u% f6 o( v$ H( [% U
% E- o) `+ e, d; q% t3 O
甇仿炊:蝵桅脩怠蝑( B! ?" \2 J" X
iptables -A INPUT -p tcp --dport 21 -j ACCEPT
+ v$ P6 Z" v0 s6 Biptables -A INPUT -p tcp --dport 48000:50000 -j ACCEPT
) m$ W+ t% o# h) d) @  ]* k1 I- I1 U1 ^' L# D7 L
甇仿炊鈭:臬私ure-ftpd
' x2 R# f% s4 q9 a" e! Z2 ]5 U) c, vchkconfig pure-ftpd --level 345 on (閮剖瘥甈⊿璈芸瑁)& m) Q# [8 o" C" G: u
憒曆軏hkconfig,which chkconfig 臭誑曉啣桅雿蝵,銝祆閰脣/sbin,憒/sbin銋瘝銵函內瘝摰鋆chkconfig! b+ p# G3 m. E
yum install chkconfig 摰鋆chkconfig7 f) k1 o. ?3 Y- @  U3 g. G5 z
憒摰鋆摰銋 chkconfig: command not found) r, p( ]  x) D  ^5 {/ F/ b8 u% x
銝蝯  
% E0 f& G" e& i5 d6 j5 Dln -s /sbin/chkconfig /usr/bin/
& `/ `1 r' _5 K8 n; A# K$ I+ w/ F/ e
) A, |; X, I/ o# O7 t
/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) f( O9 \" Z- G  h$ F! H
銋雿銝蝯
: n0 F4 b  _& L9 O# r2 @- mln -s /sbin/service /usr/bin/$ Y( p: H7 A; Z( ~4 D  T
3 x; R8 t+ B" K" W) g
摰鋆 ftp client :7 M/ N; y) X: Q. z2 l
yum install ftp -y8 l" N; P7 O& k

3 V; ]  g9 A8 v+ ~6 X* h7 i閮:
& D0 S! ?2 {# _' y
9 o9 w: f1 s0 i5 [( Z; t6 m
1.
/ ~6 R1 t. [6 U: J
when login ftp show error:/ }5 K) q# M9 `: T) \3 X: y
530 Login authentication failed
8 m: o- ~2 z2 `' T1 f9 E& PLogin failed.0 T1 Y: |1 q9 C, e

- _" k6 k) x( e6 I0 P) o

0 U% d* |  m/ d2 M- @check /var/log/secure+ V6 \! Z0 x6 `% \: L  r: E
Nov  3 10:03:44 DLTB-2475 pure-ftpd: pam_listfile(pure-ftpd:auth): Couldn't open /etc/ftpusers: t2 u& i& U. _( s
Nov  3 10:03:44 DLTB-2475 pure-ftpd: PAM audit_log_acct_message() failed: Operation not permitted. A. J0 d7 C+ P/ F

2 }' _, m7 W! A9 j2 W2 }Sol:
: E/ b9 m. c- ?  I/ Mvi /etc/pure-ftpd/pure-ftpd.conf$ }3 y' N  s' @
撠PAMAuthentication 隤霅寞 UnixAuthentication隤霅 ,
6 a% B  f) a' `8 A#PAMAuthentication             yes  閮餉圾
" O; [4 ?6 O5 x: P: v7 Z7 \UnixAuthentication            yes  瘨閮餉圾
  T7 m6 C( w- A6 @service pure-ftpd restart! j0 s: c4 w5 K+ m$ l
1 C$ H6 {( g  b+ d0 M- I
2.
. E' K; N3 N! D# y+ W/ tWhen login ftp server from remote host show errors:
! ^/ @4 l8 i/ A" j5 t/ U4 gconnect: No route to host/ u7 B1 `8 a5 z
舫脩怎雿鈭,iptable瘝⊥閮胤AT,SOL:
; {' E( p3 N( H9 `7 P- cstop iptables or 拍嗉身摰 iptables
: i3 _, B8 q2 B4 J5 A1 [( `& c% x4 t& W, v: ?
vi /etc/sysconfig/iptables-config$ F/ i. h% C" `  V8 Q" A
湔 IPTABLES_MODULES= IPTABLES_MODULES=ip_nat_ftp ip_conntrack_ftp
- C5 [0 i  G2 [4 h. r7 X( S0 {service iptables reload0 \$ n! I+ n4 b! l: R' d6 w

: |; H7 p' P: g3.$ l; v+ H* [. V' Y
421 Unable to read the indexed puredb file (or old format detected) - Try pure-pw mkdb
: v/ Q! ~  X) e6 S: I( KLogin failed.. E. [" u+ E/ g2 J* T$ G# p  p
$ J4 c" Q7 K% I% t- A* \' x
SOL:
1 J! `) f% d$ G; `" Vvi /etc/pure-ftpd/pure-ftpd.conf
' k$ `3 b8 O/ j; mPureDB /etc/pure-ftpd/pureftpd.pdb 閮餉圾
. J! c. I$ f) z4 n, W3 P- z& S4.0 u, e# i0 m7 \, @( X7 D: h' s
ftp> put file
+ n( w! u& F4 |5 a& u  u/ Mlocal: file remote: file+ o$ S! X$ B" n0 l/ h) g
227 Entering Passive Mode (122,117,11,31,193,78)+ r- ?' h7 C! C0 d9 z# d6 R. ?
553 Can't open that file: Permission denied
5 P5 j+ U. d6 g1 r
' E1 O  T7 q3 s. R  zSOL:2 ]8 H+ F6 c5 T- I  S- S- d0 {
ls -l /home/user17 Q( m" j) {( H
drwxr-xr-x. 2 root root 4096 2016-01-17 04:46 user1
! S( b" d! L2 g% z6 S* Rchown user1:user1 /home/user1
8 k8 D% r( }% D2 p, z, L' ~9 X4 n) w' \% o' N2 F- U9 P% j
[ftp 隞也' Z1 a, Q- U# Z+ Z
lcd 寡local桅
) D7 h3 C& \% j) Zlls  亦local桅瑼獢 (蝑 !ls)7 o" J9 O, X0 j2 _; K# p  |' E: D
5 D9 }# c) m# V& Y: P- n+ ?- J

: q0 Y9 i( E7 ?1 l$ L1 X7 c0 T' n, \6 g) D9 a4 x- u

5 |2 n( ]6 n9 ?

雿輻券

祉蝛閬

BT蝳

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

QQ|撠暺撅||52AV璈A

GMT+8, 2024-11-22 09:10 , Processed in 0.057299 second(s), 16 queries .

蝯∠.撱

[email protected] | QQ:2405733034     since 2015-01

鋆貉憒 敹恍敺 餈銵