**Learn Linux Series (#2) - Proftpd management and configuration** https://steemitimages.com/0x0/https://habrastorage.org/getpro/habr/post_images/9e3/d19/948/9e3d19948ac4132613bf784ef7c7d229.png #### What Will I Learn? - What is proftpd - How to install Proftpd - How to configure Proftpd - Starting, restarting and stopping the server - Restrictions about IP and hosts from which you can log in - Logging in as an anonymous user to the server - Server load constraints - Troubleshooting ProFTPD #### Requirements - Linux system installed - Basic knowledge of terminal operation - Average knowledge of linux commands - Motivation when something goes wrong #### Difficulty Intermediate <br> <center> https://bmat.pl/wp-content/uploads/2015/02/proftpd.jpg <br> **Learn Linux Series (#2) - Proftpd management and configuration** <br> - **What is proftpd** <br> </center> FTP allows you to transfer files between a server computer and a client computer. The connection via the FTP protocol can work in two modes: active passive. In active mode, FTP uses port 21 for commands and port 20 for data transfer. In passive mode, FTP uses port 21 for commands and a port number above 1024 for data transmission. <br> - **Proftpd Installation** <br> In the terminal, we must execute the command to download the proftpd software. To do this, enter the command: ``` language apt-get install proftpd ``` <br> if a message pops up that we do not have administrator rights, we must execute the command: ``` language sudo -s ``` (this command gives us administrator privileges, and keeps them at all times while the terminal is running). After downloading the software, it's time to launch it.<br> - **Starting, restarting and stopping the server**<br> We will need these commands:<br> Server launch: ``` language /etc/init.d/proftpd start ``` Message that should appear when the Proftpd server is successfully started:  Server restart: ``` language /etc/init.d/proftpd restart ``` Server stop: ``` language /etc/init.d/proftpd stop ``` If we already know how to install, run, disable, restart the server, then we have to get to the configuration. <br> - **Proftpd configuration**<br> The basic configuration file is /etc/proftpd.conf<br> The simplest, enabling the server to work properly, the configuration file is: ``` language ServerName "utopian" ServerAdmin email@utopian.admin ServerType standalone DefaultServer on DefaultRoot ~ Port 21 Umask 002 User utopian Group utopian ``` <br> - **Restrictions about IP and hosts from which you can log in**<br> Sometimes it happens that we have to set access restrictions to the server. Limitations can be determined in two ways. <br> Method 1:<br> By default, let everyone in, except for some addresses.<br> ``` language <Limit LOGIN> Order allow,deny Deny from c.utopian.io Deny from p.utopian2.io </Limit> ``` Computers from "Deny from" will not be allowed into the server. All others will be let in. <br> Method 2:<br> By default, allow selected people, and the rest do not allow.<br> ``` language <Limit LOGIN> Order deny,allow Allow from c.utopian.io </Limit> ``` Only computers entered in "Allow from" will be allowed to the server.<br> - **Logging in as an anonymous user to the server**<br> Anonymous is a special user that have allowed access to public server resources. We can log in without entering the password and freely download the software available. An example configuration of an anonymous account: ``` language User ftp - user Group ftp - group AnonRequirePassword off - loggining without password UserAlias anonymous ftp - user's aliases DisplayLogin .welcome.msg - welcome message DisplayFirstChdir .message -message that appears after entering the catalog GroupOwner ftp Umask 002 <Limit WRITE> DenyAll <Limit> <Limit READ DIRS> IgnoreHidden on <Limit> ``` <br> - **Server load constraints**<br> It happens that the traffic on the server is so big, it overloads the server so much that it can not be operated. In this case, we need to introduce server load constraints. We use two commands for this:<br> ``` language MaxClients ``` and ``` language MaxClientsPerHost ``` Sample configuration: ``` language MaxClients 100 "There are currently too many people on the utopian server, try again later!" MaxClientsPerHost 12 "You have too many open connections, you can not enter to utopian." ``` <br> - **Troubleshooting ProFTPD**<br> Error messages can be found in ``` language /var/log/proftpd/proftpd.log ``` by default, if the Proftpd server does not work after installation, you can check this file. Sometimes, the server is delayed and you can not access the server. The message "Connection refused" will then pop up. It is not a problem. You must restart the ProFTPD server until it works. <br> Default log message if everything is okay: ``` language 2018-03-08 13:04:35,072 vitusc-utopian proftpd[2205] vitusc-utopian: ProFTPD 1.3.5d (maint) (built Thu Ja$ ``` #### Curriculum [Part 1 - TCP/IP Computer Adaptation](https://utopian.io/utopian-io/@vitusc/learn-linux-series-1-tcp-ip-computer-adaptation) <br /><hr/><em>Posted on <a href="https://utopian.io/utopian-io/@vitusc/learn-linux-series-2-proftpd-management-and-configuration">Utopian.io - Rewarding Open Source Contributors</a></em><hr/>
author | vitusc | ||||||
---|---|---|---|---|---|---|---|
permlink | learn-linux-series-2-proftpd-management-and-configuration | ||||||
category | utopian-io | ||||||
json_metadata | "{"community":"utopian","app":"utopian/1.0.0","format":"markdown","repository":{"id":2325298,"name":"linux","full_name":"torvalds/linux","html_url":"https://github.com/torvalds/linux","fork":false,"owner":{"login":"torvalds"}},"pullRequests":[],"platform":"github","type":"tutorials","tags":["utopian-io","utopian-io","steemit","promo-steem","linux"],"users":["utopian.admin","vitusc"],"links":["https://res.cloudinary.com/hpiynhbhq/image/upload/v1520510847/taaja3mqmhcfueff2tby.png","https://utopian.io/utopian-io/@vitusc/learn-linux-series-1-tcp-ip-computer-adaptation"],"image":["https://res.cloudinary.com/hpiynhbhq/image/upload/v1520510847/taaja3mqmhcfueff2tby.png"],"moderator":{"account":"cha0s0000","time":"2018-03-08T14:05:04.237Z","reviewed":true,"pending":false,"flagged":false},"questions":[{"question":"Is the project description formal?","answers":[{"value":"Yes it’s straight to the point","selected":true,"score":10},{"value":"Need more description ","selected":false,"score":5},{"value":"Not too descriptive","selected":false,"score":0}],"selected":0},{"question":"Is the language / grammar correct?","answers":[{"value":"Yes","selected":true,"score":20},{"value":"A few mistakes","selected":false,"score":10},{"value":"It's pretty bad","selected":false,"score":0}],"selected":0},{"question":"Was the template followed?","answers":[{"value":"Yes","selected":true,"score":10},{"value":"Partially","selected":false,"score":5},{"value":"No","selected":false,"score":0}],"selected":0},{"question":"Is there information about the additional frameworks?","answers":[{"value":"Yes, everything is explained","selected":false,"score":5},{"value":"Yes, but not enough","selected":true,"score":3},{"value":"No details at all","selected":false,"score":0}],"selected":1},{"question":"Is there code in the tutorial?","answers":[{"value":"Yes, and it’s well explained","selected":true,"score":5},{"value":"Yes, but no explanation","selected":false,"score":3},{"value":"No","selected":false,"score":0}],"selected":0},{"question":"Is the tutorial explains technical aspects well enough?","answers":[{"value":"Yes, it teaches how and why about technical aspects","selected":false,"score":5},{"value":"Yes, but it’s not good/enough","selected":true,"score":3},{"value":"No, it explains poorly","selected":false,"score":0}],"selected":1},{"question":"Is the tutorial general and dense enough?","answers":[{"value":"Yes, it’s general and dense","selected":false,"score":5},{"value":"Kinda, it might be more generalized","selected":true,"score":3},{"value":"No, it’s sliced unnecessarily to keep part number high","selected":false,"score":0}],"selected":1},{"question":"Is there an outline for the tutorial content at the beginning of the post","answers":[{"value":"Yes, there is a well prepared outline in “What will I learn?” or another outline section","selected":true,"score":5},{"value":"Yes, but there is no proper listing for every step of the tutorial or it’s not detailed enough","selected":false,"score":3},{"value":"No, there is no outline for the steps.","selected":false,"score":0}],"selected":0},{"question":"Is the visual content of good quality?","answers":[{"value":"Yes","selected":true,"score":5},{"value":"Yes, but bad quality","selected":false,"score":3},{"value":"No","selected":false,"score":0}],"selected":0},{"question":"Is this a tutorial series?","answers":[{"value":"Yes","selected":true,"score":5},{"value":"Yes, but first part","selected":false,"score":3},{"value":"No","selected":false,"score":0}],"selected":0},{"question":"Is the tutorial post structured?","answers":[{"value":"Yes","selected":true,"score":5},{"value":"Not so good","selected":false,"score":3},{"value":"No","selected":false,"score":0}],"selected":0}],"score":65}" | ||||||
created | 2018-03-08 12:13:45 | ||||||
last_update | 2018-03-08 14:05:03 | ||||||
depth | 0 | ||||||
children | 3 | ||||||
last_payout | 2018-03-15 12:13:45 | ||||||
cashout_time | 1969-12-31 23:59:59 | ||||||
total_payout_value | 19.236 HBD | ||||||
curator_payout_value | 8.379 HBD | ||||||
pending_payout_value | 0.000 HBD | ||||||
promoted | 0.000 HBD | ||||||
body_length | 5,597 | ||||||
author_reputation | 1,946,343,431,111 | ||||||
root_title | "Learn Linux Series (#2) - Proftpd management and configuration" | ||||||
beneficiaries |
| ||||||
max_accepted_payout | 1,000,000.000 HBD | ||||||
percent_hbd | 10,000 | ||||||
post_id | 43,097,846 | ||||||
net_rshares | 8,657,828,917,723 | ||||||
author_curate_reward | "" |
voter | weight | wgt% | rshares | pct | time |
---|---|---|---|---|---|
eric-boucher | 0 | 178,354,352,319 | 50% | ||
yuxi | 0 | 17,710,958,504 | 100% | ||
thatmemeguy | 0 | 4,654,684,399 | 50% | ||
dyancuex | 0 | 905,162,625 | 50% | ||
toninux | 0 | 655,476,652 | 50% | ||
jdc | 0 | 633,562,382 | 20% | ||
yekrats | 0 | 540,031,654 | 10% | ||
bargolis | 0 | 670,816,168 | 5% | ||
mys | 0 | 8,308,265,043 | 15% | ||
helo | 0 | 12,301,273,304 | 100% | ||
walnut1 | 0 | 7,316,210,533 | 5% | ||
ilyastarar | 0 | 74,621,898,736 | 50% | ||
flauwy | 0 | 65,046,641,591 | 35% | ||
herman2141 | 0 | 148,862,078 | 50% | ||
mahdiyari | 0 | 13,394,964,884 | 20% | ||
ronimm | 0 | 12,592,683,099 | 100% | ||
mufasatoldyou | 0 | 7,632,884,380 | 100% | ||
makrotheblack | 0 | 2,823,117,296 | 50% | ||
simonluisi | 0 | 2,076,228,633 | 100% | ||
thinkkniht | 0 | 500,079,142 | 75% | ||
jfuenmayor96 | 0 | 2,434,554,354 | 50% | ||
onos | 0 | 108,047,856 | 5% | ||
letsmakes | 0 | 243,745,121 | 50% | ||
drigweeu | 0 | 310,489,379 | 3% | ||
jesdn16 | 0 | 2,784,663,255 | 100% | ||
xtramedium | 0 | 157,473,501 | 50% | ||
leir | 0 | 3,171,886,543 | 97% | ||
stoodkev | 0 | 16,863,646,810 | 10% | ||
dintellectual | 0 | 4,680,521,281 | 100% | ||
luisrod | 0 | 116,008,370 | 15% | ||
ansonoxy | 0 | 1,637,011,002 | 100% | ||
smafey | 0 | 1,041,062,144 | 50% | ||
espoem | 0 | 31,295,525,787 | 60% | ||
timmyeu | 0 | 830,363,823 | 50% | ||
nvidovskaya | 0 | 575,992,378 | 100% | ||
omersurer | 0 | 180,148,489 | 1% | ||
idlebright | 0 | 3,144,520,923 | 50% | ||
utopian-io | 0 | 7,896,353,232,185 | 4.93% | ||
steaknsteem | 0 | 1,920,412,337 | 50% | ||
jaff8 | 0 | 17,745,494,530 | 25% | ||
parag | 0 | 220,998,236 | 50% | ||
zouxx | 0 | 101,094,288 | 0.01% | ||
kimaben | 0 | 541,636,658 | 50% | ||
kslo | 0 | 2,459,917,029 | 50% | ||
nathalie13 | 0 | 854,038,386 | 100% | ||
not-a-bird | 0 | 1,612,685,372 | 20% | ||
adhew | 0 | 61,532,000 | 10% | ||
bitopia | 0 | 1,443,278,137 | 100% | ||
berkaytekinsen | 0 | 1,663,819,329 | 100% | ||
eleonardo | 0 | 59,274,728 | 10% | ||
zohaib715 | 0 | 310,241,935 | 50% | ||
idontgnu | 0 | 52,092,697 | 10% | ||
studytext | 0 | 147,922,299 | 25% | ||
greenorange | 0 | 613,506,280 | 100% | ||
fabiocola | 0 | 812,486,347 | 100% | ||
checkthisout | 0 | 821,476,271 | 50% | ||
navx | 0 | 2,030,825,928 | 70% | ||
handfree42 | 0 | 220,904,128 | 50% | ||
ilovekrys | 0 | 218,406,478 | 50% | ||
family.app | 0 | 98,214,082 | 100% | ||
maphics | 0 | 102,583,703 | 100% | ||
sebastiengllmt | 0 | 306,503,607 | 50% | ||
utopian-1up | 0 | 18,198,545,993 | 100% | ||
luoq | 0 | 8,792,557,051 | 50% | ||
carsonroscoe | 0 | 4,365,584,686 | 50% | ||
franklan3386 | 0 | 417,992,723 | 100% | ||
zlatkamrs | 0 | 429,419,978 | 70% | ||
amosbastian | 0 | 10,239,842,945 | 50% | ||
bobsthinking | 0 | 4,602,128,606 | 100% | ||
acrywhif | 0 | 3,323,461,501 | 80% | ||
xplore | 0 | 398,139,078 | 50% | ||
just2random | 0 | 46,057,832,654 | 100% | ||
layanmarissa | 0 | 221,846,146 | 50% | ||
proffgodswill | 0 | 61,299,229 | 10% | ||
grzesiekb | 0 | 76,020,037,716 | 100% | ||
sweeverdev | 0 | 1,052,002,634 | 50% | ||
isacastillor | 0 | 1,337,686,878 | 95% | ||
devilonwheels | 0 | 1,495,755,154 | 10% | ||
anmeitheal | 0 | 4,672,812,789 | 50% | ||
jerybanfield | 0 | 1,843,355,030 | 100% | ||
rhotimee | 0 | 5,789,239,063 | 50% | ||
jrmiller87 | 0 | 1,910,507,923 | 100% | ||
solomon507 | 0 | 445,250,928 | 50% | ||
patatesyiyen | 0 | 75,184,681 | 12.5% | ||
deejee | 0 | 122,575,017 | 20% | ||
rsteem | 0 | 112,854,790 | 50% | ||
onin91 | 0 | 399,938,958 | 50% | ||
isabella394 | 0 | 2,485,922,576 | 100% | ||
zinonweke | 0 | 2,053,724,497 | 75% | ||
emailbox19149 | 0 | 110,283,719 | 50% | ||
emirfirlar | 0 | 397,813,024 | 50% | ||
pizezomat | 0 | 554,295,071 | 100% | ||
lemony-cricket | 0 | 11,216,356,668 | 20% | ||
rayday | 0 | 318,603,585 | 100% | ||
yeswanth | 0 | 613,361,162 | 100% | ||
kaking | 0 | 257,313,540 | 50% | ||
exploreand | 0 | 5,712,140,971 | 25% | ||
petvalbra | 0 | 614,056,411 | 100% | ||
hmctrasher | 0 | 300,174,314 | 10% | ||
olayhemy | 0 | 468,045,608 | 50% | ||
photohunter1 | 0 | 2,057,260,300 | 100% | ||
photohunter2 | 0 | 102,022,207 | 100% | ||
photohunter3 | 0 | 99,604,162 | 100% | ||
photohunter4 | 0 | 84,986,416 | 100% | ||
photohunter5 | 0 | 82,487,898 | 100% | ||
josh26 | 0 | 57,333,865 | 10% | ||
howtosteem | 0 | 3,159,212,981 | 100% | ||
sylinda | 0 | 221,017,935 | 50% | ||
fmbs25 | 0 | 270,753,379 | 50% | ||
livsky | 0 | 371,913,262 | 50% | ||
badmusazeez | 0 | 98,042,809 | 50% | ||
roj | 0 | 1,476,519,937 | 100% | ||
charitybot | 0 | 4,176,113,643 | 15% | ||
aderemi01 | 0 | 844,154,777 | 50% | ||
steemnova | 0 | 563,071,727 | 15% | ||
killbill73 | 0 | 129,178,981 | 50% | ||
adejokeade | 0 | 212,241,463 | 50% | ||
amirdesaingrafis | 0 | 306,419,146 | 50% | ||
fai.zul | 0 | 283,384,675 | 50% | ||
nightdragon | 0 | 130,944,639 | 50% | ||
jacintoelbarouki | 0 | 220,611,552 | 50% | ||
reazuliqbal | 0 | 863,016,155 | 100% | ||
aliyu-s | 0 | 376,294,021 | 50% | ||
muratti | 0 | 500,712,527 | 100% | ||
vitusc | 0 | 673,488,731 | 100% | ||
mairosoft | 0 | 459,416,495 | 100% | ||
flinter | 0 | 159,366,622 | 50% | ||
opulence | 0 | 1,795,549,753 | 50% | ||
phasma | 0 | 122,604,626 | 20% | ||
heshe-f | 0 | 274,783,489 | 25% | ||
donjyde | 0 | 224,843,310 | 50% | ||
crispycoinboys | 0 | 2,060,097,849 | 30% | ||
gwapoaller | 0 | 306,745,727 | 50% | ||
bluestorm | 0 | 459,735,758 | 75% | ||
genoner | 0 | 193,129,882 | 50% | ||
muammarnst | 0 | 308,138,382 | 50% | ||
jayo | 0 | 220,582,378 | 50% | ||
pepememes | 0 | 163,049,955 | 50% | ||
peancy | 0 | 528,432,394 | 100% | ||
charitymemes | 0 | 165,123,259 | 15% | ||
tintailmu | 0 | 246,565,816 | 50% | ||
animesukidesu | 0 | 168,586,781 | 50% | ||
derasmo | 0 | 563,725,758 | 50% | ||
musicbot | 0 | 146,444,781 | 100% | ||
anime.lovers | 0 | 308,364,470 | 50% | ||
flugbot | 0 | 122,643,184 | 100% | ||
steemtux | 0 | 2,576,515,809 | 100% | ||
steemlore | 0 | 102,168,698 | 50% | ||
truthtrader | 0 | 67,180,654 | 50% |
Thank you for the contribution. It has been approved. - What you talk in the tutorial is so simple that I nearly want to reject it .But considering your own thought of the tutorials . - Hope for your more quality work instead of simple and easy ones You can contact us on [Discord](https://discord.gg/uTyJkNm). **[[utopian-moderator]](https://utopian.io/moderators)**
author | cha0s0000 |
---|---|
permlink | re-vitusc-learn-linux-series-2-proftpd-management-and-configuration-20180308t140621309z |
category | utopian-io |
json_metadata | {"tags":["utopian-io"],"community":"utopian","app":"utopian/1.0.0"} |
created | 2018-03-08 14:06:21 |
last_update | 2018-03-08 14:06:21 |
depth | 1 |
children | 1 |
last_payout | 2018-03-15 14:06:21 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.000 HBD |
curator_payout_value | 0.000 HBD |
pending_payout_value | 0.000 HBD |
promoted | 0.000 HBD |
body_length | 373 |
author_reputation | 30,983,518,016,225 |
root_title | "Learn Linux Series (#2) - Proftpd management and configuration" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 43,117,749 |
net_rshares | 0 |
Thanks a lot for approve. Can you tell me what do you think about my part 1?
author | vitusc |
---|---|
permlink | re-cha0s0000-re-vitusc-learn-linux-series-2-proftpd-management-and-configuration-20180308t170751249z |
category | utopian-io |
json_metadata | {"tags":["utopian-io"],"app":"steemit/0.1"} |
created | 2018-03-08 17:07:51 |
last_update | 2018-03-08 17:07:51 |
depth | 2 |
children | 0 |
last_payout | 2018-03-15 17:07:51 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.000 HBD |
curator_payout_value | 0.000 HBD |
pending_payout_value | 0.000 HBD |
promoted | 0.000 HBD |
body_length | 76 |
author_reputation | 1,946,343,431,111 |
root_title | "Learn Linux Series (#2) - Proftpd management and configuration" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 43,152,241 |
net_rshares | 0 |
Thank you for the next tutorial on the linux system.
author | peancy |
---|---|
permlink | re-vitusc-learn-linux-series-2-proftpd-management-and-configuration-20180308t125630052z |
category | utopian-io |
json_metadata | {"tags":["utopian-io"],"app":"steemit/0.1"} |
created | 2018-03-08 12:56:33 |
last_update | 2018-03-08 12:56:33 |
depth | 1 |
children | 0 |
last_payout | 2018-03-15 12:56:33 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.000 HBD |
curator_payout_value | 0.000 HBD |
pending_payout_value | 0.000 HBD |
promoted | 0.000 HBD |
body_length | 52 |
author_reputation | 1,834,452,363 |
root_title | "Learn Linux Series (#2) - Proftpd management and configuration" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 43,105,793 |
net_rshares | 0 |