{"id":5114,"date":"2016-07-29T20:30:55","date_gmt":"2016-07-29T17:30:55","guid":{"rendered":"http:\/\/mummila.net\/kommentit\/?p=5114"},"modified":"2016-07-29T20:30:55","modified_gmt":"2016-07-29T17:30:55","slug":"cannot-override-timeout-directives-in-included-configuration","status":"publish","type":"post","link":"https:\/\/mummila.net\/kommentit\/2016\/07\/29\/cannot-override-timeout-directives-in-included-configuration\/","title":{"rendered":"Cannot override Timeout directives in included configuration"},"content":{"rendered":"<p>Redefining TimeoutIdle or TimeoutNoTransfer in a configuration file inside \/etc\/proftpd\/conf.d\/, after they&#8217;ve already been defined in \/etc\/proftpd\/proftpd.conf, fails to change those values for the daemon \u2014 that is, after restarting the daemon, the values for those parameters remain as those set in \/etc\/proftpd\/proftpd.conf.<\/p>\n<p>At least TimeoutIdle or TimeoutNoTransfer are affected. TimeoutSession and TimeoutLogin, which (in stock 16.04) haven&#8217;t been defined in the master configuration file can be set effectively, but setting them first in the master file, then again to different values inside conf.d reveals them to be equally affected.<\/p>\n<p>On the other hand, (at least) ServerName *can* be overridden in the custom configuration file, so the handling of different configuration knobs in this regard seems to be inconsistent.<\/p>\n<p>Steps to reproduce:<br \/>\n1. Create a \/etc\/proftpd\/conf.d\/proftpd.conf with the following lines:<br \/>\nTimeoutIdle 10<br \/>\nTimeoutNoTransfer 10<br \/>\n2. Restart proftpd<br \/>\n3. Log into the server, wait 11 seconds<\/p>\n<p>What I expect to happen:<br \/>\nTo get kicked out of the server.<\/p>\n<p>What happens instead:<br \/>\nI&#8217;m allowed to linger on the server, presumably for the 600 seconds defined for TimeoutNoTransfer in \/etc\/proftpd\/proftpd.conf.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Redefining TimeoutIdle or TimeoutNoTransfer in conf.d fails to change those values for the daemon if they&#8217;ve been set in master configuration.<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[8860],"tags":[14002],"class_list":["post-5114","post","type-post","status-publish","format-standard","hentry","category-vianhallintajarjestelmat","tag-proftpd","sijainti-launchpad"],"_links":{"self":[{"href":"https:\/\/mummila.net\/kommentit\/wp-json\/wp\/v2\/posts\/5114","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/mummila.net\/kommentit\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mummila.net\/kommentit\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mummila.net\/kommentit\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/mummila.net\/kommentit\/wp-json\/wp\/v2\/comments?post=5114"}],"version-history":[{"count":1,"href":"https:\/\/mummila.net\/kommentit\/wp-json\/wp\/v2\/posts\/5114\/revisions"}],"predecessor-version":[{"id":5115,"href":"https:\/\/mummila.net\/kommentit\/wp-json\/wp\/v2\/posts\/5114\/revisions\/5115"}],"wp:attachment":[{"href":"https:\/\/mummila.net\/kommentit\/wp-json\/wp\/v2\/media?parent=5114"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mummila.net\/kommentit\/wp-json\/wp\/v2\/categories?post=5114"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mummila.net\/kommentit\/wp-json\/wp\/v2\/tags?post=5114"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}