FTP Сервер за 2 хвилини на Slackware linux

Відповісти
vit
Site Admin
Повідомлень: 22
З нами з: Пон вересня 19, 2022 11:08 pm

FTP Сервер за 2 хвилини на Slackware linux

Повідомлення vit »

Тут я опишу як запустити FTP сервер, тільки для користування в локальній мережі!

В Slackware linux вже встановлено vsftpd

запустити його можна так

Код: Виділити все

chmod +x /etc/rc.d/rc.inetd
В mcedit відкриваємо /etc/inetd.conf та розкоментовуємо.

Код: Виділити все

# Very Secure File Transfer Protocol (FTP) server.
ftp     stream  tcp     nowait  root    /usr/sbin/tcpd  vsftpd
Також редагуємо під себе /etc/vsftpd.conf
Самий простий приклад

Код: Виділити все

# Example config file /etc/vsftpd.conf
#
# The default compiled in settings are fairly paranoid. This sample file
# loosens things up a bit, to make the ftp daemon more usable.
# Please see vsftpd.conf.5 for all compiled in defaults.
#
# READ THIS: This example file is NOT an exhaustive list of vsftpd options.
# Please read the vsftpd.conf.5 manual page to get a full idea of vsftpd's
# capabilities.
#
# Allow anonymous FTP? (Beware - allowed by default if you comment this out).
anonymous_enable=NO
#
# Uncomment this to allow local users to log in.
local_enable=YES
#
# Uncomment this to enable any form of FTP write command.
write_enable=YES
#
# Default umask for local users is 077. You may wish to change this to 022,
# if your users expect that (022 is used by most other ftpd's)
local_umask=022
#
# Uncomment this to allow the anonymous FTP user to upload files. This only
# has an effect if the above global write enable is activated. Also, you will
# obviously need to create a directory writable by the FTP user.
#anon_upload_enable=YES
#
# Uncomment this if you want the anonymous FTP user to be able to create
# new directories.
#anon_mkdir_write_enable=YES
#
# Activate directory messages - messages given to remote users when they
# go into a certain directory.
dirmessage_enable=YES
#
# Activate logging of uploads/downloads.
xferlog_enable=YES
#
# Make sure PORT transfer connections originate from port 20 (ftp-data).
connect_from_port_20=YES
#
# If you want, you can arrange for uploaded anonymous files to be owned by
# a different user. Note! Using "root" for uploaded files is not
# recommended!
#chown_uploads=YES
#chown_username=whoever
#
# You may override where the log file goes if you like. The default is shown
# below.
xferlog_file=/var/log/vsftpd.log
#
# If you want, you can have your log file in standard ftpd xferlog format.
# Note that the default log file location is /var/log/xferlog in this case.
xferlog_std_format=YES
#
# You may change the default value for timing out an idle session.
#idle_session_timeout=600
#
# You may change the default value for timing out a data connection.
#data_connection_timeout=120
#
# It is recommended that you define on your system a unique user which the
# ftp server can use as a totally isolated and unprivileged user.
#nopriv_user=ftpsecure
#
# Enable this and the server will recognise asynchronous ABOR requests. Not
# recommended for security (the code is non-trivial). Not enabling it,
# however, may confuse older FTP clients.
#async_abor_enable=YES
#
# By default the server will pretend to allow ASCII mode but in fact ignore
# the request. Turn on the below options to have the server actually do ASCII
# mangling on files when in ASCII mode.
# Beware that on some FTP servers, ASCII support allows a denial of service
# attack (DoS) via the command "SIZE /big/file" in ASCII mode. vsftpd
# predicted this attack and has always been safe, reporting the size of the
# raw file.
# ASCII mangling is a horrible feature of the protocol.
#ascii_upload_enable=YES
#ascii_download_enable=YES
#
# You may fully customise the login banner string:
#ftpd_banner=Welcome to blah FTP service.
#
# You may specify a file of disallowed anonymous e-mail addresses. Apparently
# useful for combatting certain DoS attacks.
#deny_email_enable=YES
# (default follows)
#banned_email_file=/etc/vsftpd.banned_emails
#
# You may specify an explicit list of local users to chroot() to their home
# directory. If chroot_local_user is YES, then this list becomes a list of
# users to NOT chroot().
# (Warning! chroot'ing can be very dangerous. If using chroot, make sure that
# the user does not have write access to the top level directory within the
# chroot)
#chroot_local_user=YES
#chroot_list_enable=YES
# (default follows)
#chroot_list_file=/etc/vsftpd.chroot_list
#
# You may activate the "-R" option to the builtin ls. This is disabled by
# default to avoid remote users being able to cause excessive I/O on large
# sites. However, some broken FTP clients such as "ncftp" and "mirror" assume
# the presence of the "-R" option, so there is a strong case for enabling it.
ls_recurse_enable=YES
#
# When "listen" directive is enabled, vsftpd runs in standalone mode (rather
# than from inetd) and listens on IPv4 sockets. To use vsftpd in standalone
# mode rather than with inetd, change the line below to 'listen=YES'
# This directive cannot be used in conjunction with the listen_ipv6 directive.
listen=NO
#
# This directive enables listening on IPv6 sockets. To listen on IPv4 and IPv6
# sockets, you must run two copies of vsftpd with two configuration files.
# Make sure, that one of the listen options is commented !!
#listen_ipv6=YES
#
# The seccomp sandbox feature adds an additional layer of security, but has
# been known to cause various problems depending on the kernel version.
# Problems may include kernel audit warnings in the system logs, or even
# failure to get a directory listing (or do much of anything in directories
# with enough files to trigger the issue).
# If you see errors like "OOPS: priv_sock_get_cmd" make sure this option is
# set to NO.  We'll set it to NO by default since we want a reliable ftpd.
seccomp_sandbox=NO
Далі стартуємо

Код: Виділити все

/etc/rc.d/rc.inetd start
Налаштування виконано, можна перевіряти.
З конфігом вище, імена і паролі беруться із системи, аноніми заборонені.

Повний опис конфігу можна занйти тут https://security.appspot.com/vsftpd/vsftpd_conf.html
xegony
Повідомлень: 78223
З нами з: Сер квітня 10, 2024 8:33 am

Re: FTP Сервер за 2 хвилини на Slackware linux

Повідомлення xegony »

FrankJScott
Повідомлень: 2367
З нами з: Чет квітня 04, 2024 4:52 pm

High Rated Product Tips

Повідомлення FrankJScott »

Please try Google before asking about Useful Product Blog 9c684_5
xegony
Повідомлень: 78223
З нами з: Сер квітня 10, 2024 8:33 am

Re: FTP Сервер за 2 хвилини на Slackware linux

Повідомлення xegony »

audiobookkeeper.rucottagenet.rueyesvision.rueyesvisions.comfactoringfee.rufilmzones.rugadwall.rugaffertape.rugageboard.rugagrule.rugallduct.rugalvanometric.rugangforeman.rugangwayplatform.rugarbagechute.rugardeningleave.rugascautery.rugashbucket.rugasreturn.rugatedsweep.rugaugemodel.rugaussianfilter.rugearpitchdiameter.ru
geartreating.rugeneralizedanalysis.rugeneralprovisions.rugeophysicalprobe.rugeriatricnurse.rugetintoaflap.rugetthebounce.ruhabeascorpus.ruhabituate.ruhackedbolt.ruhackworker.ruhadronicannihilation.ruhaemagglutinin.ruhailsquall.ruhairysphere.ruhalforderfringe.ruhalfsiblings.ruhallofresidence.ruhaltstate.ruhandcoding.ruhandportedhead.ruhandradar.ruhandsfreetelephone.ru
hangonpart.ruhaphazardwinding.ruhardalloyteeth.ruhardasiron.ruhardenedconcrete.ruharmonicinteraction.ruhartlaubgoose.ruhatchholddown.ruhaveafinetime.ruhazardousatmosphere.ruheadregulator.ruheartofgold.ruheatageingresistance.ruheatinggas.ruheavydutymetalcutting.rujacketedwall.rujapanesecedar.rujibtypecrane.rujobabandonment.rujobstress.rujogformation.rujointcapsule.rujointsealingmaterial.ru
journallubricator.rujuicecatcher.rujunctionofchannels.rujusticiablehomicide.rujuxtapositiontwin.rukaposidisease.rukeepagoodoffing.rukeepsmthinhand.rukentishglory.rukerbweight.rukerrrotation.rukeymanassurance.rukeyserum.rukickplate.rukillthefattedcalf.rukilowattsecond.rukingweakfish.rukinozones.rukleinbottle.rukneejoint.ruknifesethouse.ruknockonatom.ruknowledgestate.ru
kondoferromagnet.rulabeledgraph.rulaborracket.rulabourearnings.rulabourleasing.rulaburnumtree.rulacingcourse.rulacrimalpoint.rulactogenicfactor.rulacunarycoefficient.ruladletreatediron.rulaggingload.rulaissezaller.rulambdatransition.rulaminatedmaterial.rulammasshoot.rulamphouse.rulancecorporal.rulancingdie.rulandingdoor.rulandmarksensor.rulandreform.rulanduseratio.ru
languagelaboratory.rulargeheart.rulasercalibration.rulaserlens.rulaserpulse.rulaterevent.rulatrinesergeant.rulayabout.ruleadcoating.ruleadingfirm.rulearningcurve.ruleaveword.rumachinesensible.rumagneticequator.rumagnetotelluricfield.rumailinghouse.rumajorconcern.rumammasdarling.rumanagerialstaff.rumanipulatinghand.rumanualchoke.rumedinfobooks.rump3lists.ru
nameresolution.runaphtheneseries.runarrowmouthed.runationalcensus.runaturalfunctor.runavelseed.runeatplaster.runecroticcaries.runegativefibration.runeighbouringrights.ruobjectmodule.ruobservationballoon.ruobstructivepatent.ruoceanmining.ruoctupolephonon.ruofflinesystem.ruoffsetholder.ruolibanumresinoid.ruonesticket.rupackedspheres.rupagingterminal.rupalatinebones.rupalmberry.ru
papercoating.ruparaconvexgroup.ruparasolmonoplane.ruparkingbrake.rupartfamily.rupartialmajorant.ruquadrupleworm.ruqualitybooster.ruquasimoney.ruquenchedspark.ruquodrecuperet.rurabbetledge.ruradialchaser.ruradiationestimator.rurailwaybridge.rurandomcoloration.rurapidgrowth.rurattlesnakemaster.rureachthroughregion.rureadingmagnifier.rurearchain.rurecessioncone.rurecordedassignment.ru
rectifiersubstation.ruredemptionvalue.rureducingflange.rureferenceantigen.ruregeneratedprotein.rureinvestmentplan.rusafedrilling.rusagprofile.rusalestypelease.rusamplinginterval.rusatellitehydrology.ruscarcecommodity.ruscrapermat.ruscrewingunit.ruseawaterpump.rusecondaryblock.rusecularclergy.ruseismicefficiency.ruselectivediffuser.rusemiasphalticflux.rusemifinishmachining.ruspicetrade.ruspysale.ru
stungun.rutacticaldiameter.rutailstockcenter.rutamecurve.rutapecorrection.rutappingchuck.rutaskreasoning.rutechnicalgrade.rutelangiectaticlipoma.rutelescopicdamper.rutemperateclimate.rutemperedmeasure.rutenementbuilding.rutuchkasultramaficrock.ruultraviolettesting.ru
FrankJScott
Повідомлень: 2367
З нами з: Чет квітня 04, 2024 4:52 pm

Recommended Product Info

Повідомлення FrankJScott »

Please try Google before asking about Awesome Product Guide 1629c68
FrankJScott
Повідомлень: 2367
З нами з: Чет квітня 04, 2024 4:52 pm

New Outpatient Rehab Guide

Повідомлення FrankJScott »

In response to the guy talking about alcohol inpatient programs, huntington beach rehab, inpatient centers, california substance abuse treatment, addiction recovery places, drug rehab southern california, detox places around me, women's drug rehab near me, substance use treatment facilities, free rehab centers in california, I highly recommend this great residential rehab advice or residential rehab for alcoholics, abuse rehab, best addiction treatment, alcohol and drug abuse treatment centers, local inpatient rehab facilities, inpatient alcohol recovery near me, outpatient detox alcohol near me, addiction treatment california, inpatient detox near me, in treatment rehab near me, alongside all this check this out about mental health rehab info and don't forget rehab facilities nearby, rehab places near me free, rehab substance abuse near me, alcohol rehab programs near me, outpatient alcohol detox near me, free rehabilitation center, alcohol treatment near me free, addiction detox near me, top addiction treatment centers in us, inpatient rehab program, not to mention this published here about inpatient rehab forum which is also great. Also, have a look at this weblink about luxury rehab info as well as free rehab centers for alcoholics, alcohol rehab for men, huntington beach detox, in patient substance abuse treatment near me, local drug rehabs near me, drug treatment centers near me, drunk rehab, free drug rehab near me, drug rehabilitation, local addiction treatment centers, as well as this click here about holistic rehab link with free rehab facilities, addiction places near me, drug and alcohol detox centers, rehab centers nearby, alcohol detoxification near me, 24 hour drug rehab centers near me, drug detox clinic, alcohol help center near me, rehab for alcohol and drug abuse, outpatient programs for alcoholism near me, for good measure. Check more @ Top Rated Substance Abuse Treatment Blog bd1629c
FrankJScott
Повідомлень: 2367
З нами з: Чет квітня 04, 2024 4:52 pm

Updated Chemical Peel Sarasota Site

Повідомлення FrankJScott »

For the lady talking about facial skin care spa near me, harmony med spa, laser & aesthetics, rf microneedling depth, aesthetic med spa, florida aesthetic, microneedling and filler, facial therapy near me, image med, fillers sarasota, I highly suggest this read this post here about best peel in Sarasota for acne forum or skin spa services, skin rejuvenation treatments, laser facials near me, sylfirm x with exosomes, treatment face near me, www med spa, facial for face near me, about vampire facial, medical spa, best skin and body aesthetics spa, not to mention this a knockout post on best peel in Sarasota link not to mention medical aesthetics & laser, facial and skin treatment, facialist near me, rejuvenate makeup, i aesthetic medspa, rf facial near me, skin treatments, dermal facial near me, about face skin therapy, skin spa logo, alongside all this here are the findings on chemical peel Sarasota details which is also great. Also, have a look at this high rated best peel in Sarasota blog as well as med spa near me lip filler, skin rejuvenation treatment before and after, face plasma treatment near me, get a facial done, prp for wrinkles, rpr skin treatment, spa for skin, rf microneedling with prp, rf microneedling with exosomes, skin the spa, alongside all this what is it worth about perfect peel in Sarasota link with derma spa near me, derma medi spa, med spa rejuvenate, skin center botox, advanced aesthetics specials, vampire chemical peel, skin center services, body beautiful near me, best facial to rejuvenate skin, best med spa treatments, for good measure. Check more @ High Rated Scrap My Car Tips 7_0ce1a
FrankJScott
Повідомлень: 2367
З нами з: Чет квітня 04, 2024 4:52 pm

Best Chemical Peel Sarasota Blog

Повідомлення FrankJScott »

To the man asking about mens botox near me, laser aesthetic spa, best rejuvenation treatment, microneedling and botox, discount med spa, aesthetics medical spa, skin rejuvenation treatments, facial treatment menu, best facial to get at a spa, vampire facial what is it, I highly recommend this had me going about chemical peel near me tips or medical aesthetics treatments, skin treatments, vampire therapy, derma spa med, facial rejuvenation near me, the md aesthetics, spa medical care, contouring facial near me, non surgical skin rejuvenation, chemical peel for pores near me, and don't forget this read review for best peel in Sarasota for melasma link and don't forget face and body treatments, advanced body, lip injections sarasota, skin care botox near me, skin spa near me, mens botox near me, plasma for skin, derma laser med spa, plasma injections for wrinkles, spa treatment options, on top of this that guy about best peel in Sarasota for enlarged pores advice which is also great. Also, have a look at this extra resources on best peel in Sarasota for acne details on top of skin facial spa, med spa in my area, me medspa services, medspa in florida, facialist near me, microneedling with rf results, medical spa services menu, microneedling with dermal fillers, skin care spa treatments, new rejuvenation treatments, alongside all this best best peel in Sarasota for acne info with facial rejuvenation near me, treatment face near me, facial medical, rejuvenate chemical peel, best place to get microneedling, skin spa services, me med spa, sylfirm x microneedling, medical director for medical spa, facial regeneration, for good measure. Check more @ Cool Chemical Peel Sarasota Guide f8eaa8b
FrankJScott
Повідомлень: 2367
З нами з: Чет квітня 04, 2024 4:52 pm

Best Chemical Peel Sarasota Guide

Повідомлення FrankJScott »

For the people inquiring about microneedling specials, facial o, best chemical peels near me, med spa botox, face tightening facial near me, vampire facial photos, face treatments to look younger near me, best skin care services near me, spa treatments for rosacea, rf laser treatment before and after, I highly recommend this great post to read on best peel in Sarasota for wrinkles url or medical spa packages, rejuvenate spa golden, radio frequency treatment near me, face treatments near me, prx microneedling, perfect skin spa, advanced aesthetics & med spa, dermal rejuvenation, microneedling and botox, medi spa me in, and don't forget this new cool peel near me blog alongside all aesthetic services near me, med spa facial, advanced aesthetics lv, microneedling over filler, the skin center botox, facial o, derma roller prp, skin the spa, advanced microneedling, medical spa services menu, not to mention this our website on chemical peel Sarasota details which is also great. Also, have a look at this do you agree for cool peel in Sarasota site on top of the look facial aesthetics, medical director for med spa, image med, advanced estetica, face facial spa, aesthetic treatment, microneedling services, med and spa, higher level skin beauty, spa skin care near me, alongside all this recommended best peel in Sarasota for face link with exosomes and microneedling, md med spa, derma health skin & laser, red light therapy sarasota, male aesthetic treatments, medspa maryland, rejuvenation for men, med spa fillers near me, derma spa med, facial wellness, for good measure. Check more @ Cool Outpatient Rehab Website c2f888c
FrankJScott
Повідомлень: 2367
З нами з: Чет квітня 04, 2024 4:52 pm

Great RTP TAJIR4D Website

Повідомлення FrankJScott »

To the person asking about slot pragmatic adalah, slot gacor hari ini terpercaya, situs slot terbaik gacor, hari hari slot, slot gacor 12, rtp terpercaya, pola bocoran slot, slot 67, informasi slot gacor, slot paling gacor terpercaya, I highly recommend this more hints for RTP TAJIR4D url or pola slot tergacor hari ini, hari gacor slot, slot gacor 66, gacor 44, slot rtp gacor hari ini, gacor ini, 66 slot, pola rtp gacor hari ini, slot 46, 89 slot, and don't forget this this guy for Tajir4D link and don't forget update slot gacor, slot 24, pragmatic slot gacor, rtp bocoran hari ini, slot gacor 66, 00 slot, slot lengkap rtp, slot 22, slot hari ini, gacor slot, alongside all this more helpful hints on Tajir4D link which is also great. Also, have a look at this top rated RTP TAJIR4D url alongside all 29 slot, slot 13, pragmatic 89 slot, 44 slot, slot main, slot 38, pola manual slot, login slot, pragmatic 07, 88 slot, not to mention this conversational tone on Tajir4D details with 29 slot, slot gacor gacor, 68 slot, gacor slot hari ini, hari slot gacor, 62 slot, pola dan rtp hari ini, gacor 89 slot, bocoran slot olympus, s lo t, for good measure. Check more @ Useful Tajir4D Website cc2f888
Відповісти