{"id":1015,"date":"2014-06-11T09:14:42","date_gmt":"2014-06-11T08:14:42","guid":{"rendered":"http:\/\/oprsteny.cz\/?p=1015"},"modified":"2014-06-11T09:19:59","modified_gmt":"2014-06-11T08:19:59","slug":"proftpd-and-inetdxinetd-in-ubuntu-12-04-and-above","status":"publish","type":"post","link":"https:\/\/oprsteny.cz\/?p=1015","title":{"rendered":"ProFTPD and inetd\/xinetd in Ubuntu 12.04 and above"},"content":{"rendered":"<p><img loading=\"lazy\" decoding=\"async\" data-attachment-id=\"965\" data-permalink=\"https:\/\/oprsteny.cz\/?attachment_id=965\" data-orig-file=\"https:\/\/oprsteny.cz\/wp-content\/uploads\/linux2.png\" data-orig-size=\"129,150\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;}\" data-image-title=\"Linux\" data-image-description=\"\" data-image-caption=\"\" data-large-file=\"https:\/\/oprsteny.cz\/wp-content\/uploads\/linux2.png\" class=\"size-full wp-image-965 alignleft\" src=\"http:\/\/oprsteny.cz\/wp-content\/uploads\/linux2.png\" alt=\"Linux\" width=\"129\" height=\"150\" \/>With Ubuntu versions prior to 12.04 there was an <em>inetd<\/em> daemon running and available to be used for triggering the FTP service. Since version 12.04 <em>inetd<\/em> package is deprecated and is replaced by <em>xinetd<\/em>.<\/p>\n<p><!--more-->Installation of ProFTPD in older Ubuntu version was simple &#8211; just running command to install the ProFTPD<\/p>\n<pre>sudo apt-get install proftpd<\/pre>\n<p>and modifying the \/etc\/inetd.conf with line<\/p>\n<pre style=\"color: #555555;\"><code class=\"last\">ftp  stream  tcp  nowait  root  \/usr\/sbin\/tcpd  \/usr\/sbin\/proftpd<\/code><\/pre>\n<p>restarting the inetd service<\/p>\n<pre>sudo service inetd restart<\/pre>\n<p>and you were done.<\/p>\n<p>In Ubuntu 12.04 the <em>inetd <\/em>package\u00a0was removed as deprecated and was replaced by an upgraded version called <em>xinetd. <\/em>Developers of<em> xinetd <\/em>kept support of<em> \/etc\/inetd.conf <\/em>file but the correct\/new approach of defining services to be maintained by the <em>xinetd<\/em>\u00a0daemon is to create separate\u00a0file for each service in <em>\/etc\/xinetd.d <\/em>folder.<em>\u00a0<\/em>In case of FTP service it will be<em> \/etc\/xinetd.d\/ftp <\/em>with the following contents (<em>Note:<\/em> the curly brackets must\u00a0be on separate lines)<\/p>\n<pre>service ftp\r\n{\r\n  disable     = no\r\n  flags       = REUSE\r\n  socket_type = stream\r\n  wait        = no\r\n  user        = root\r\n  server      = \/etc\/sbin\/proftpd\r\n  server_args = -c \/etc\/proftpd\/proftpd.conf\r\n}\r\n<\/pre>\n<p>Where<\/p>\n<ul>\n<li><strong>socket type<\/strong><br \/>\nSets the network socket type to <em>stream<\/em><\/li>\n<li><strong>protocol<br \/>\n<\/strong>Sets the protocol to TCP<\/li>\n<li><strong>wait<br \/>\n<\/strong>This option accepts <em>yes<\/em> or <em>no<\/em> values only. It defines the service to be multi-threaded (<em>wait = no<\/em>) or single-threaded (<em>wait = yes<\/em>)<\/li>\n<li><strong>user<br \/>\n<\/strong>User who runs the service<\/li>\n<\/ul>\n<p>To reload the configuration of xinetd call the following command and you should be up and running<\/p>\n<pre>sudo service xinetd restart<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>With Ubuntu versions prior to 12.04 there was an inetd daemon running and available to be used for triggering the FTP service. Since version 12.04 inetd package is deprecated and is replaced by xinetd.<\/p>\n","protected":false},"author":1,"featured_media":965,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"ProFTPD and inetd\/xinetd in Ubuntu 12.04 and above http:\/\/wp.me\/p3nYbe-gn","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[39,45,5],"tags":[296,295,49,297],"class_list":["post-1015","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-infrastructure","category-linux","category-tools","tag-inetd","tag-proftpd","tag-ubuntu","tag-xinetd"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"https:\/\/oprsteny.cz\/wp-content\/uploads\/linux2.png","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p3nYbe-gn","jetpack-related-posts":[],"_links":{"self":[{"href":"https:\/\/oprsteny.cz\/index.php?rest_route=\/wp\/v2\/posts\/1015","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/oprsteny.cz\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/oprsteny.cz\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/oprsteny.cz\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/oprsteny.cz\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1015"}],"version-history":[{"count":2,"href":"https:\/\/oprsteny.cz\/index.php?rest_route=\/wp\/v2\/posts\/1015\/revisions"}],"predecessor-version":[{"id":1017,"href":"https:\/\/oprsteny.cz\/index.php?rest_route=\/wp\/v2\/posts\/1015\/revisions\/1017"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/oprsteny.cz\/index.php?rest_route=\/wp\/v2\/media\/965"}],"wp:attachment":[{"href":"https:\/\/oprsteny.cz\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1015"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/oprsteny.cz\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1015"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/oprsteny.cz\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1015"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}