52AV璈A|52AV.ONE

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

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

[銴鋆賡包
頝唾唳摰璅撅
璅銝
潸” 2015-10-30 22:13:17 | 芰閰脖 撣 |摨閬 |梯璅∪
:
% l1 v& d; M; ehttp://www.111cn.net/sys/CentOS/88456.htm
; k! |! P5 t( `# J' Mhttps://www.centos.bz/2011/03/centos-pureftpd-install/( ?1 ]  i8 F% `# @& K

$ _6 A% G5 A: T* h4 ]: c1 R* n餈Yum摰鋆Pure-ftpd霂衣甇仿炊憒銝嚗
5 `/ h  }. O, _# Y" N" ]+ l( y; E. }
甇仿炊銝:蝵座um皞隞乩舫撠 CentOS 6.X/ t9 B' C' O( j3 E$ R
憭隞(憒蝵桀嗡epel皞)
# w$ ?3 {  G- p4 c6 Emv /etc/yum.repos.d/epel.repo /etc/yum.repos.d/epel.repo.backup7 C8 `+ S; V/ p! w$ {
銝頧賣郢epo /etc/yum.repos.d/
+ K# c7 h/ Z5 @6 rwget -O /etc/yum.repos.d/epel.repo http://mirrors.aliyun.com/repo/epel-6.repo
/ T# b) J2 N% wyum makecache
) _4 {1 H6 c; ?# b
& Q. J# v( x$ r: [$ @+ n隞乩舫撠 CentOS 5.X- V5 l0 n8 B9 d- O
cd /etc/yum.repos.d/2 \( y# `# g- ]+ g+ R( T
wget http://centos.karan.org/kbsingh-CentOS-Extras.repo& `7 _1 w5 Z; A, R' M8 W3 P/ R

; v  h/ e4 Y1 I+ L: z敹瞈瘣蝕bs-CentOS-Testing摨怒kbsingh-CentOS-Extras.repo隞塚enabled=0寞enabled=1: ~; Y5 x+ e2 z% [6 V
vi kbsingh-CentOS-Extras.repo
6 z% U+ K0 g# ~: a$ J6 Q% G: t( v
  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
銴鋆賭誨蝣
憒甇仿銝憭望閰,雿輻其誑銝隞:/ s$ v, h+ ?6 @4 @' ]3 x; ~
rpm -Uvh ftp://ftp.trychlos.org/pub/CentOS/6.3/pcalfs/x86_64/RPMS/epel-release-6-7.noarch.rpm  (CentOS 6.7)
! V8 ~- M) h. e$ I# {* [
銝臭誑CentOS 6.7,憒浚entOS 6.8 狂oogle 撠 epel-release-6-8.noarch.rpm頛暺,隞交迨憿
; u& }$ z4 r8 ?0 n6 ~# y; z
+ F3 ^) e/ S. {1 Q! o
甇仿炊鈭:yum摰鋆; \+ b/ G4 F" M' C8 {' z) ]% l- n
yum install pure-ftpd -y
# A& e$ z5 W0 P- u: X7 Q" U: `" _2 D  i  n) a
甇仿炊銝:靽格寥蝵格隞
6 [1 ]' |; ~& d" P( c" r4 Vvim /etc/pure-ftpd/pure-ftpd.conf" Q! K/ _, i) ~% c6 J- m6 }
  `3 I3 v/ \- }4 t& o) G/ D! Z
PureDB /etc/pure-ftpd/pureftpd.pdb# o% I+ I1 ^; j: Y
#餅餈銵瘜券嚗摰頝臬嚗PureDB冽唳桀3 A8 W2 J- W) M0 a' ~
VerboseLog yes. J4 v7 I0 }; P& s0 T
#撘舀亙  /var/log/pureftpd.log
) m5 w4 ?! I5 f# C9 d( ONoAnonymous yes
7 ~  Q3 g7 p$ i$ d#蝏踹冽瑞餃
2 {( c; h* X) P+ C" r& APassivePortRange 48000 50000
2 C0 r! x6 x6 [#雿輻刻◤冽芋撘嚗嗥垢
6 T- K. G1 H: V. ?
% S( T" A; p# [) D6 U0 b" u, F" `5 [. [/ s& i- G, J3 H4 N
1 T+ y/ y: W' R
甇仿炊:蝵桅脩怠蝑: M2 S5 Z4 U0 ?) J: o4 g
iptables -A INPUT -p tcp --dport 21 -j ACCEPT
* W* I+ T' r$ Aiptables -A INPUT -p tcp --dport 48000:50000 -j ACCEPT
% B7 j. A+ ?1 |2 u' I/ |7 a4 q2 P' g  a) A8 m# i6 q
甇仿炊鈭:臬私ure-ftpd. O% }2 K  {0 K1 B- o, s
chkconfig pure-ftpd --level 345 on (閮剖瘥甈⊿璈芸瑁)
7 b2 j8 u$ ~3 T& o, }9 o% ~4 N憒曆軏hkconfig,which chkconfig 臭誑曉啣桅雿蝵,銝祆閰脣/sbin,憒/sbin銋瘝銵函內瘝摰鋆chkconfig
7 T# [" D! S% n) I# b) O" C. w5 c3 jyum install chkconfig 摰鋆chkconfig
2 l0 F# S; b/ D# g- D, `( Q憒摰鋆摰銋 chkconfig: command not found
! o. v. X+ _: V銝蝯  6 o& y5 A+ {: l  r+ {
ln -s /sbin/chkconfig /usr/bin/
6 j5 G+ _8 l( ~9 p3 w% Q  H
" `$ ]0 B4 ~0 I; q/ C$ }5 N
/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 found1 l' i+ z0 u, H5 d. k% Z3 i
銋雿銝蝯
( b. e: }7 z) i( a; r4 I3 Q( Cln -s /sbin/service /usr/bin/& @! F6 F0 i8 u
' E, c5 @, c- g6 h+ O" y% [
摰鋆 ftp client :# c" h0 Z" \5 t  _* }
yum install ftp -y
/ H2 X) z. V) [0 j

- a- I% g4 @4 b% R9 `閮:
6 l+ x1 G: H* S
2 a9 T6 p4 P5 d' r+ f6 \
1.
+ w6 [* T0 w  V- H* N6 }
when login ftp show error:3 r- @! R' X2 ^) C5 F
530 Login authentication failed
/ O; f  ]+ @9 }4 F- hLogin failed.
: S' i) P# u' J9 R9 v9 b$ y9 v" A* O: d0 {, k  ?+ u
6 w& H0 i7 h, X: N8 x/ X
check /var/log/secure( @5 @- Z5 T) m0 V1 r
Nov  3 10:03:44 DLTB-2475 pure-ftpd: pam_listfile(pure-ftpd:auth): Couldn't open /etc/ftpusers
- @) Z7 ]2 @3 ~" INov  3 10:03:44 DLTB-2475 pure-ftpd: PAM audit_log_acct_message() failed: Operation not permitted
+ W" t* V/ `' F
% \/ v4 c) D; ]  q. G; o% b* H
Sol:
( I- Q) g  Z: t9 c  k* ?vi /etc/pure-ftpd/pure-ftpd.conf0 y7 K; t0 ~5 h
撠PAMAuthentication 隤霅寞 UnixAuthentication隤霅 ,
0 f$ V/ r6 U1 [# d) D3 N#PAMAuthentication             yes  閮餉圾
' {, S( O# p# a$ v# e2 s8 nUnixAuthentication            yes  瘨閮餉圾
! u, o  d7 g6 Aservice pure-ftpd restart! c8 `# D' ~4 G& e) ^; F( i

  D- Y3 t0 F6 d; ]2.# I/ f8 j$ x6 c1 q2 r9 P" P3 c
When login ftp server from remote host show errors:4 P4 x; H  E$ _- C& D& S
connect: No route to host
( F8 D2 y9 P; t  h" Q) F7 R舫脩怎雿鈭,iptable瘝⊥閮胤AT,SOL:/ m: _6 |/ |* A* _. E
stop iptables or 拍嗉身摰 iptables 8 m; Y( k( e" o' b/ j1 u
7 I' m' S1 u/ A7 w2 z, S# c) k
vi /etc/sysconfig/iptables-config% Y6 d5 M$ I$ G0 S
湔 IPTABLES_MODULES= IPTABLES_MODULES=ip_nat_ftp ip_conntrack_ftp! S$ x3 v8 J: ^1 h: E$ ]
service iptables reload2 L) p2 d" K/ ~; S" ?7 c

8 a' x- B5 n: @7 @3.
( g' u% c3 I' W5 m4 `, [# r421 Unable to read the indexed puredb file (or old format detected) - Try pure-pw mkdb
, J( c" U  t# ~  b) NLogin failed.8 S4 c0 l& v( r  [4 b
% j* \" ~/ [! J6 w
SOL:. ~5 {. {3 U2 ^0 l" N1 Z$ I
vi /etc/pure-ftpd/pure-ftpd.conf
2 V2 u/ s; L* ZPureDB /etc/pure-ftpd/pureftpd.pdb 閮餉圾+ x# ]$ P" m! b6 K& {0 I
4.' v$ g! u& B- s3 m0 Q3 J0 x
ftp> put file
" Y% V: n4 \7 A& i: {5 o1 Olocal: file remote: file
$ o/ Y& q: m5 R( z8 Z5 C: S, I227 Entering Passive Mode (122,117,11,31,193,78)4 R0 M% S6 i1 a& }$ N$ G. L
553 Can't open that file: Permission denied$ K) f" ]! r& C* ?4 Y: |
" S) B" @" r" i! E8 Z
SOL:
7 M0 |8 |8 b, ^5 ~3 o4 d0 C2 ^ls -l /home/user1
( G& K% k6 F; `. v- ldrwxr-xr-x. 2 root root 4096 2016-01-17 04:46 user1
' o$ m/ o' F! fchown user1:user1 /home/user1
- Y  I+ k/ r2 I( V+ |7 P" h4 a% f% i+ {! s$ z( }: }
[ftp 隞也
5 t/ Q6 L8 l" ~8 }/ _) C% e; Plcd 寡local桅
+ Y+ E# R" h8 j8 ]; B. _/ Olls  亦local桅瑼獢 (蝑 !ls)' X0 ~3 M0 o, y8 h+ }& m& b2 U' ~. b

1 M9 j+ q5 O, d- A3 I5 [" n: t

" d( Y. O7 v: b6 Q$ {
* Y' \. s+ z0 A/ u
. j8 t& p7 N& u

雿輻券

祉蝛閬

BT蝳

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

QQ|撠暺撅||52AV璈A

GMT+8, 2024-11-22 15:56 , Processed in 0.063682 second(s), 16 queries .

蝯∠.撱

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

鋆貉憒 敹恍敺 餈銵