Ungayifaka kanjani futhi uyilungiselele kanjani iseva ye-FTP enabasebenzisi be-Pure-FTPd +

Ngingomunye walabo abathanda ukusungula izinto ezintsha nokufunda izinto ezintsha, kungekudala nje bekumele ngifake futhi ngilungiselele iseva ye-FTP futhi nginqume ukuyenza ngendlela ehlukile kunaleyo ebengihlala ngiyenza.

Kulokhu ngakhetha isevisi ye-FTP enabasebenzisi abonakalayo, abasebenzisi abazogcinwa kufayela elibethelwe (umsebenzisi, iphasiwedi, izilungiselelo, njll.), Konke I-FTPd emsulwa.

Lapha ngizokukhombisa ukuthi ungakwenza kanjani ... kahle, asiqale 😉

Okokuqala, chaza ukuthi imiyalo ekulesi sifundo yenzelwe ama-distros afana ne-Debian noma asuselwe kuwo, kepha uma umuntu esebenzisa enye i-distro kuseva yakhe kumele afake amaphakheji afanayo futhi asebenzise izilungiselelo ezibekwe ngezansi, okuwukuphela kwento edinga ukuguqulwa ngumyalo wokufaka.

Yonke imiyalo abazoyifunda izokwenziwa njengezimpande, uma ufisa ukuthi ungalungiselela u- "Sudo" kulayini ngamunye.

1. Okokuqala kufanele sifake i-Pure FTPd:

apt-get install pure-ftpd

Izokuqeda ukukhipha entweni enjengale:

ukufaka-okumsulwa-ftpd

2. Isevisi isivele yenziwe yasebenza, kepha ayisizi kithi uma singayilungiselelanga kahle, ake sibeke ifayela lokumisa elibanzi kepha licishe libe yisezingeni, liqukethe okujwayelekile, okuqinisekisa ukuthi abasebenzisi abangaziwa abavunyelwe, njll.

cd /etc/pure-ftpd/ && wget http://ftp.desdelinux.net/pure-ftpd.conf

3. Ake sithi ifolda yethu ye-FTP iyi / var / www / ftp / futhi sifuna ukudala umsebenzisi ongalayisha imininingwane ku- / var / www / ftp / sysadmin / folder, ake sibeke okulandelayo esigungwini:

pure-pw useradd sysadmin -u 2001 -g 2001 -d /var/www/ftp/sysadmin/

Lokhu kusho okulandelayo:

i-pure-pw: Umyalo osetshenziselwa ukuxhaphaza abasebenzisi be-Pure-FTPd
useradd: Sikhombisa ukuthi sizofaka umsebenzisi
sysadmin: Umsebenzisi engifuna ukumdala
-u 2001: I-UserID yalowo msebenzisi
-g 2001: IqembuID yalowo msebenzisi
-d / var / www / ftp / sysadmin /: Ifolda ezoba yikhaya lalowo msebenzisi, okungukuthi, lapho bazofaka khona izinto

Uma ufaka umugqa owedlule, uzokubuza iphasiwedi yalowo msebenzisi.

Kufanele ngabe bake badala ifolda ye-sysadmin ngaphakathi / var / www / ftp /

4. Manje kufanele bavuselele ifayili ledatha yomsebenzisi, kulokhu sifaka ifolda / etc / pure-ftpd / (cd / etc / pure-ftpd) bese sibeka esigungwini:

pure-pw mkdb

5. Manje kufanele siqale i-Pure-FTPd kepha sikhombise ukuthi sizosebenzisa ifayela labasebenzisi elibonakalayo, okokuqala ake simise insiza:

/etc/init.d/pure-ftpd stop

Ngemuva kwalokho sizoqinisekisa ukuthi ngeke iqale ngokuzenzakalela ngokujwayelekile:

chmod -x /etc/init.d/pure-ftpd

Manje sesiqala insizakalo ngendlela yethu:

/usr/sbin/pure-ftpd -j -lpuredb:/etc/pure-ftpd/pureftpd.pdb

6. Uma bezama ukusebenzisa uhlelo olufana neFayilezilla bazobona ukuthi bangaxhuma ngaphandle kwezinkinga ngomsebenzisi owenziwe, noma kunjalo ngeke bakwazi ukukopisha noma yini noma benze izinkomba, lokhu kungenxa yokuthi ifolda / var / www / ftp / sysadmin / (ikhaya lomsebenzisi ngokwesibonelo) ayinazo izimvume ezifanele, izolungiswa nge:

chown -R 2001:2001 /var/www/ftp/sysadmin/

Khumbula, i-Uid neGid 2001 ingomunye womsebenzisi esimdalile, sayakha ngomyalo esinyathelweni esedlule 3 😉

7. Ukumisa insiza, vele ucindezele u- [Ctrl] + [C] ku-terminal efanayo noma wenze:

killall pure-ftpd

Manje sizokhombisa ukuthi insiza izoqala ngokuzenzakalela ngohlelo lapho iseva iqala, kulokhu sishintsha ifayela /etc/rc.local nangaphambi kolayini wokugcina othi "phuma ku-0" sibeka umyalo esiqala ngawo insiza ye-FTP:

/usr/sbin/pure-ftpd -j -lpuredb:/etc/pure-ftpd/pureftpd.pdb

Ngamanye amagama, kungabonakala kanjena:

i-rc-yendawo-ehlanzekile-ftpd

Ungahlela ifayela nge-nano, vi noma umhleli wakho owuthandayo, noma uma uthanda, kopisha bese unamathisela lo myalo ozokwenza umsebenzi wakho ube lula:

perl -pi -e "s[exit 0][/usr/sbin/pure-ftpd -j -lpuredb:/etc/pure-ftpd/pureftpd.pdb]g" /etc/rc.local && echo "exit 0" >> /etc/rc.local

... yebo yebo ... njengoba ufunda, «yenza lula», kungumyalo obanzi yebo, kepha umane nje ukufaka esikhundleni sombhalo nge-perl kanye ne-echo engenabungozi ...

8. Uma lokhu sekwenziwe, qala kabusha iseva futhi uzobona ukuthi insizakalo ye-pure-ftpd isiqaliwe futhi ilungele ukusebenza 😀

Ungabasusa kanjani abasebenzisi?

Njengoba ngikutshelile ngaphambili, umyalo msulwa-pw yilokho esikudingayo ukukhohlisa abasebenzisi, ukususa umsebenzisi (ngokwesibonelo, sysadmin) ake sibeke okulandelayo:

cd /etc/pure-ftpd/
pure-pw userdel sysadmin
pure-pw mkdb

Khumbula ukuthi noma nini lapho wenza ushintsho kumsebenzisi, kufanele uvuselele ifayili ledatha elibonakalayo labasebenzisi, litholakala ku- / etc / pure-ftpd / Futhi lenziwa / livuselelwe nge-pure-pw mkdb

Noma kunjalo bangani ngicabanga ukuthi akukho okunye okungangezwa, sikumema ukuthi ufunde usizo lwe-pure-pw ngoba lusivumela okuningi kakhulu kunalokhu engikukhombise khona lapha (lesi isifundo nje esifushane futhi esicishe sibe yisisekelo).

Ngonyaka owodwa noma emibili eyedlule ngangingomunye walabo abaxhumanisa yonke into ne-OpenLDAP noma i-MySQL, kepha njengoba isikhathi sihamba ngabona ukuthi ukuxhumana okuningi kulwazi olungamaseva ngaleyo ndlela kukhiqiza ukusetshenziswa izikhathi eziningi esingenakukuthenga, Ngalesi sizathu, ukusetshenziswa kwezindlela ezisebenza ngokuphelele njengokusebenzisa imininingwane emafayilini ohlelo, njengakulesi se-Pure-FTPd .pdb 🙂

Noma yikuphi ukungabaza noma umbuzo ngizozama ukusiza ngangokunokwenzeka.

Ukubingelela kanye… nokugenca okuhle!


Okuqukethwe yi-athikili kunamathela ezimisweni zethu ze izimiso zokuhlelela. Ukubika iphutha chofoza lapha.

Amazwana ayi-13, shiya okwakho

Shiya umbono wakho

Ikheli lakho le ngeke ishicilelwe. Ezidingekayo ibhalwe nge *

*

*

  1. Ubhekele imininingwane: Miguel Ángel Gatón
  2. Inhloso yedatha: Lawula Ugaxekile, ukuphathwa kwamazwana.
  3. Ukusemthethweni: Imvume yakho
  4. Ukuxhumana kwemininingwane: Imininingwane ngeke idluliselwe kubantu besithathu ngaphandle kwesibopho esisemthethweni.
  5. Isitoreji sedatha: Idatabase ebanjwe yi-Occentus Networks (EU)
  6. Amalungelo: Nganoma yisiphi isikhathi ungakhawulela, uthole futhi ususe imininingwane yakho.

  1.   izinga kusho

    Ukuthi lokho .. Imibhalo uma kwenzeka kube namaphutha 😀

    1.    KZKG ^ Gaara kusho

      Futhi sengivele ngibhala okuthunyelwe kokuthi ungayifaka kanjani i-Nginx + MySQL + Spawn_FastCGI njengoba ngenzile kuJustice, futhi ngenxa yalokho ibhulogi isebenza kahle kakhulu :)

      Ngiyethemba ukuthi ngizoyilungiselela ikusasa noma usuku olulandelayo lwakusasa.

  2.   Rodolfo kusho

    Okuthunyelwe okuhle; Kuyahlekisa muva nje benginenkinga yokufaka i-ftp server yami angikwazi ngisho ne-vsftpd ngaya ku-pure-ftpd ngahamba ukuthi uma ngicabanga ukuthi ngiyayidinga ukubeka isibonelo se-conf ecacile imibhalo mihle kakhulu, kepha okungenani okuyisisekelo . Ukubethela, noma okungenani itheku elidabukisayo uma kwenzeka kusetshenziswa i-router.
    Ngendlela ngalo myalo i-pure-ftpokukwazisa ukuthi ngubani oxhunywe kuseva, nokuthi uma kukhona okulandwayo;).
    Futhi ngokusho kwakho, ukubeka i-database ukuxhuma kuseva akudingekile kangako.

    1.    KZKG ^ Gaara kusho

      Ngiyabonga ngamazwana 🙂

      Yebo impela, bekufanele ngichaze izinto eziningi (empeleni) ekucushweni, ngicabanga ukuthi umuntu owazi ukuphatha iseva, ofuna ukufaka insiza ye-FTP, ukuthi othile ngeke abe nezinkinga ezinkulu lapho efunda imibono yefayela le-conf ^ - ^

      Ngiyabingelela futhi, ngiyabonga ngamazwana

  3.   UTahuri kusho

    Sawubona okuthunyelwe okuhle kakhulu, ngisebenzisa (noma okungenani okwamanje) vsftpd kepha nginezinkinga ezithile ngakho, futhi bengifuna ukubona ukuthi ngabe kwenzeke yini kulokhu, unayo i-url noma idokhumenti ukuze ubone ukuthi ukumiswa kwayo kunjani?

    Ngibonga kakhulu };)

    1.    KZKG ^ Gaara kusho

      Ungabona ukucushwa lapha: http://ftp.desdelinux.net/pure-ftpd.conf
      Noma yimiphi imibuzo noma uma udinga okuthile vula intambo esithangamini esizokuthokozela ukukusiza 🙂

  4.   I-Atheyus kusho

    Kuhle kakhulu 😀

    Into eyodwa nje encane, umyalo we-perl untule uphawu lwe- ^, ngakho-ke awuguquli okunye ukuphuma okungu-0 okusemazwaneni:

    perl -pi -e "s[^exit 0][/usr/sbin/pure-ftpd -j -lpuredb:/etc/pure-ftpd/pureftpd.pdb]g" rc.local && echo "exit 0" >> rc.local

    Phendula ngokucaphuna

  5.   Omar kusho

    Kuhle, nginombuzo nje, ngingawakha kanjani umsebenzisi ofunda kuphela? Ngisebenzisa iCentos 6.5, pureftpd, ispconfig nemodi yehluzo.

    Ngisebenzisa i-ispconfig kuphela ye-ftp

    ukubingelela nokubonga

  6.   imvula enkulu kusho

    Le ndlela yokufaka i-pureftp yi-ASCO 🙂 ushiya insiza isebenza njengezimpande, wakhe umsebenzisi obonakalayo bese ushintsha izimvume kusistimu yefayela, bese ufff isikhathi eside njll. Indlela iphakethe efakwe ngayo isilungele ukusetshenziswa, asikho isidingo sokwenza zonke lezi zinyathelo

    1.    izinga kusho

      Uyamenywa ukuba ushicilele umhlahlandlela "onengekayo" omncane .. 😉

    2.    sedlav kusho

      Ngabe uphakamisa ini? Faka iseva ye-ftp ukulalela ethekwini> 1024? Uma iseva ye-ftp ilalele ethekwini layo elijwayelekile: 22 kufanele isebenze njengezimpande ngaphandle kokuthi uguqule amandla we-kernel, uma ufuna ukuthuthukisa ezokuphepha, sebenzisa uhlaka lwe-MAC nge-SELinux, okunye okuhlukile kungaba ukuvalela / ukunqamula iseva ftp.

  7.   Ll Tailor kusho

    Isixhumanisi se-pure-ftpd.conf siphansi noma asikho nhlobo. Ungakwazi ukuyibuyisela?
    Gracias

  8.   Izinamathiseli kusho

    Ngemuva kweminyaka engu-2 isixhumanisi sefayela le-pure-ftpd.conf sisehla 🙁