52AV璈A|52AV.ONE

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

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

[銴鋆賡包
頝唾唳摰璅撅
璅銝
潸” 2015-10-30 22:13:17 | 芰閰脖 撣 |摨閬 |梯璅∪
:0 m& W6 ]2 [/ O, r
http://www.111cn.net/sys/CentOS/88456.htm+ z* q) {7 t7 ]' P6 v( R0 p: ?
https://www.centos.bz/2011/03/centos-pureftpd-install/
* L( T( Y- y" f  l! O
# ^) }9 ?+ R8 q; u7 l0 }% ~" K餈Yum摰鋆Pure-ftpd霂衣甇仿炊憒銝嚗1 g, w# Z* h% W
. n4 O- W/ l7 F! F; p
甇仿炊銝:蝵座um皞隞乩舫撠 CentOS 6.X
6 @( w! t2 l' Y( I8 }8 i憭隞(憒蝵桀嗡epel皞)
3 l  k) \8 Q3 e& V% Dmv /etc/yum.repos.d/epel.repo /etc/yum.repos.d/epel.repo.backup
$ x0 M& G! k9 D5 |6 K- Q銝頧賣郢epo /etc/yum.repos.d/
5 f1 ], i' B+ }wget -O /etc/yum.repos.d/epel.repo http://mirrors.aliyun.com/repo/epel-6.repo
, B! |& \3 G" J( q+ hyum makecache
- B' O- t' K+ t4 C2 {  d# ^( P- u
隞乩舫撠 CentOS 5.X6 L4 l- R6 H9 s) y) ^
cd /etc/yum.repos.d// R$ n) Y' h7 E
wget http://centos.karan.org/kbsingh-CentOS-Extras.repo
4 T$ H$ k4 g7 A3 j4 X5 l' W9 V9 U" V# |/ l1 ]" j4 k
敹瞈瘣蝕bs-CentOS-Testing摨怒kbsingh-CentOS-Extras.repo隞塚enabled=0寞enabled=1
  f4 ^- i. X( ivi kbsingh-CentOS-Extras.repo
6 \% G1 L2 E. s( G( B# I* F2 y' d
  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
銴鋆賭誨蝣
憒甇仿銝憭望閰,雿輻其誑銝隞:, n* f3 q( t0 R" o8 |$ J0 @
rpm -Uvh ftp://ftp.trychlos.org/pub/CentOS/6.3/pcalfs/x86_64/RPMS/epel-release-6-7.noarch.rpm  (CentOS 6.7)
0 w0 Q* q! D$ j" D  y
銝臭誑CentOS 6.7,憒浚entOS 6.8 狂oogle 撠 epel-release-6-8.noarch.rpm頛暺,隞交迨憿
( V1 u" y1 ]2 E* D3 i
9 c9 \7 u! @" E3 E! M8 U
甇仿炊鈭:yum摰鋆
# ]$ L5 \( j+ Dyum install pure-ftpd -y
: _; J4 }" H. J& r& ~- R4 M& F7 s2 Z# l4 O; r8 \
甇仿炊銝:靽格寥蝵格隞
) p1 C6 a6 Y( L; ~- v: Svim /etc/pure-ftpd/pure-ftpd.conf# [+ P, {4 r2 |5 t5 f* S" P
& |- X9 [+ W5 X4 N6 A$ v+ \
PureDB /etc/pure-ftpd/pureftpd.pdb
/ G) Z$ e5 \; T#餅餈銵瘜券嚗摰頝臬嚗PureDB冽唳桀
0 h1 g2 b  y) U) B: JVerboseLog yes
/ r% X& m) @, z9 C; [$ c- A#撘舀亙  /var/log/pureftpd.log- C( @, `- f) k
NoAnonymous yes( V- L1 G; ?9 I' S$ a  `' o( y
#蝏踹冽瑞餃3 s0 |0 }" Z0 C
PassivePortRange 48000 500002 o* C0 Z0 ^/ Y  U8 r% b, l* U9 s
#雿輻刻◤冽芋撘嚗嗥垢5 b* Y% x4 x* X3 s+ ?8 e5 w

- V3 ?1 E  N: z+ w- b2 v& I$ V
- }; }4 j) R2 G! o% ?# p! N
( Q0 o9 I8 j  o+ N* H$ E+ N# [甇仿炊:蝵桅脩怠蝑
8 l4 d: [& A! u) z  Y: L' Aiptables -A INPUT -p tcp --dport 21 -j ACCEPT' Q" f3 F4 r. E) e& T2 f" \
iptables -A INPUT -p tcp --dport 48000:50000 -j ACCEPT# T4 ^& B7 G( R& {" Y. ]4 b6 v
1 h4 |2 Q4 T9 l- K# L
甇仿炊鈭:臬私ure-ftpd
0 D$ Y& K1 g8 U( W( K2 G" \! schkconfig pure-ftpd --level 345 on (閮剖瘥甈⊿璈芸瑁)* @8 H4 q: o( V3 M: j
憒曆軏hkconfig,which chkconfig 臭誑曉啣桅雿蝵,銝祆閰脣/sbin,憒/sbin銋瘝銵函內瘝摰鋆chkconfig" i3 R7 j' t" w2 N: m( ]* l0 w  V
yum install chkconfig 摰鋆chkconfig3 F- A6 Z$ P  ?
憒摰鋆摰銋 chkconfig: command not found" N8 t" {- d$ P8 q
銝蝯  
/ O. m; Q  Y9 G) r( j6 Y9 m& x, |& _ln -s /sbin/chkconfig /usr/bin/8 y: Z0 m6 R1 f9 K. U4 i
/ z5 _0 ~; L9 s( O" Y& z; u9 ~
/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
% e" M% t7 g1 C' t% j銋雿銝蝯
. s" l6 f' j! O( rln -s /sbin/service /usr/bin/
; ]: F0 q4 c- Y7 H
9 I5 ?5 A1 X2 \1 x2 R摰鋆 ftp client :
+ c7 J$ \7 C/ I: u" O0 n# V: Yyum install ftp -y
$ v0 w+ S7 ]2 r
: I! i/ W& J3 W2 w; c7 Z8 J: P% ~# \
閮:/ F" ^7 ^9 T0 t3 F0 Y* B2 X

" ?- B, m0 U7 Y; B1.3 }1 m4 c" a$ O4 m; a! Z
when login ftp show error:2 Y* o5 i! Y2 U/ y  ?+ t  v. m$ o
530 Login authentication failed
1 |$ s* b- Z' Z1 C( a- nLogin failed.
( ?0 ^1 S! j5 i0 R9 n6 _. h
: W& j& X8 W: M0 n' |
4 ]- g4 p$ R2 t" w
check /var/log/secure4 D5 n, J: e9 ?$ {4 l  j( K
Nov  3 10:03:44 DLTB-2475 pure-ftpd: pam_listfile(pure-ftpd:auth): Couldn't open /etc/ftpusers
8 R" {5 m9 ?$ @5 Z3 r9 L9 BNov  3 10:03:44 DLTB-2475 pure-ftpd: PAM audit_log_acct_message() failed: Operation not permitted
8 O: I$ Z4 Y9 `3 `

8 \7 Z; g7 P) `' X" y% jSol:
* X- x* M8 k/ L1 K2 ovi /etc/pure-ftpd/pure-ftpd.conf4 k7 `) d2 M; F3 t$ f0 c7 A
撠PAMAuthentication 隤霅寞 UnixAuthentication隤霅 ,3 q! N$ S7 B( q0 T7 L4 n
#PAMAuthentication             yes  閮餉圾
7 ~6 y5 J4 [0 u- m5 q; x0 K4 R8 eUnixAuthentication            yes  瘨閮餉圾
/ e8 B& _8 R- H$ U$ K. H0 Rservice pure-ftpd restart, t9 s* U" I, [' ~; J0 w

3 `3 m- N( C  @3 ], t2.
$ G8 U/ g3 f$ {4 \3 }" ~When login ftp server from remote host show errors:: q1 ]4 o* L9 `
connect: No route to host
6 C8 [5 a. b3 {4 K' M& C4 {' t/ Q舫脩怎雿鈭,iptable瘝⊥閮胤AT,SOL:% P5 F; m' t- U! X3 J
stop iptables or 拍嗉身摰 iptables 8 ?, G& L3 T" Y: ]( W. {# w; E2 H

+ j. x$ m. N7 |+ ~: g  r7 v6 rvi /etc/sysconfig/iptables-config' d' }7 p# r$ V# S( `* E; [" t3 W% \
湔 IPTABLES_MODULES= IPTABLES_MODULES=ip_nat_ftp ip_conntrack_ftp" Y* p- q* X4 r# Y
service iptables reload
7 l* I( m' x5 ?% z. H. [* g# K
3 |0 T4 E- I9 }7 S% Q4 _/ d4 M8 D2 n3.1 M  ^. ]' t  H
421 Unable to read the indexed puredb file (or old format detected) - Try pure-pw mkdb
) r" v4 L& I& K2 x1 w9 OLogin failed." w, h1 ]( r: o0 h# [+ P  }

2 g* |+ u9 k+ Q* j9 PSOL:
0 E: ?; C6 T$ {3 X& C8 I# Dvi /etc/pure-ftpd/pure-ftpd.conf7 V! S& n7 _# L" H/ J
PureDB /etc/pure-ftpd/pureftpd.pdb 閮餉圾
" v, b5 |8 O% l( V' d, R4.
$ |0 x+ @% |, ~: v5 x$ cftp> put file! v9 X/ Y5 @* C" @) ^
local: file remote: file9 Y& q' k% U  K) `. q; c. v
227 Entering Passive Mode (122,117,11,31,193,78)' ]  ?( p- @* Z% ?1 `
553 Can't open that file: Permission denied) P7 x( H7 D& s

/ [5 m7 c- R1 {0 Y2 C3 O( l  ZSOL:
  N  I/ S0 ?+ j6 A8 r7 s3 als -l /home/user1  V( j4 n' ?( v  B3 D( [. ?
drwxr-xr-x. 2 root root 4096 2016-01-17 04:46 user1+ B! @3 K& V1 @1 c! C/ m) H
chown user1:user1 /home/user1
( ]5 f; z) M. Y$ n3 y- i/ c# M* ?# u' A( H- ^8 t. A; D% J
[ftp 隞也/ s$ l. s- o) E& @% R+ s
lcd 寡local桅! t( \# ?* l& o0 ~9 f& @9 K5 s' \0 T% }
lls  亦local桅瑼獢 (蝑 !ls)
$ N% V$ k  _7 }& D
- N& I" F! U* s0 z

$ u1 B# a1 O0 b2 y. t' D4 c# _3 ~8 X: `( x6 K

7 n3 M! L: ]. {' u- n* i! Q

雿輻券

祉蝛閬

BT蝳

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

QQ|撠暺撅||52AV璈A

GMT+8, 2024-11-23 17:38 , Processed in 0.055986 second(s), 16 queries .

蝯∠.撱

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

鋆貉憒 敹恍敺 餈銵