{"id":3758,"date":"2020-11-08T12:05:16","date_gmt":"2020-11-08T03:05:16","guid":{"rendered":"https:\/\/lab4ict.com\/system\/?p=3758"},"modified":"2023-06-20T06:08:03","modified_gmt":"2023-06-19T21:08:03","slug":"ubuntu-18-04-lts%e3%81%abtftp%e3%82%b5%e3%83%bc%e3%83%90%ef%bc%88tfptd%ef%bc%89%e3%82%92%e3%82%a4%e3%83%b3%e3%82%b9%e3%83%88%e3%83%bc%e3%83%ab%e3%81%99%e3%82%8b%ef%bc%81","status":"publish","type":"post","link":"https:\/\/lab4ict.com\/system\/archives\/3758","title":{"rendered":"Ubuntu Server 18.04\u306bTFTP\u30b5\u30fc\u30d0\uff08tftpd-hpa\uff09\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\uff01"},"content":{"rendered":"<p>Ubuntu Server 18.04 LTS\u306bTFTP\u30b5\u30fc\u30d0\uff08tftpd-hpa\uff09\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u307e\u3059\u3002\u30eb\u30fc\u30bf\u3084\u30b9\u30a4\u30c3\u30c1\u306e\u8a2d\u5b9a\u306e\u30d0\u30c3\u30af\u30a2\u30c3\u30d7\u7b49\u3067\u3001TFTP\u30b5\u30fc\u30d0\u304c\u4f7f\u7528\u3057\u305f\u304f\u306a\u3063\u305f\u5834\u5408\u306e\u307f\u4f7f\u7528\u3059\u308b\u60f3\u5b9a\u3067\u3059\u3002<\/p>\n<h2>vsftpd\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/h2>\n<p>apt\u30b3\u30de\u30f3\u30c9\u3067\u3001tfptd\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u307e\u3059\u3002tftp\u306f\u3001\u7a3c\u50cd\u78ba\u8a8d\u7a0b\u5ea6\u306e\u4f7f\u7528\u3092\u60f3\u5b9a\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<pre class=\"brush: plain; highlight: [1]; title: ; notranslate\" title=\"\">\r\n$ sudo apt install tftpd-hpa tftp-hpa\r\n<\/pre>\n<p>tftpd\u306e\u8d77\u52d5\u72b6\u6cc1\u78ba\u8a8d\u3092\u3057\u307e\u3059\u3002\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u76f4\u5f8c\u306b\u306f\u3001\u8d77\u52d5\u304c\u304b\u304b\u3063\u3066\u3044\u307e\u3059\u3002\u30ea\u30e2\u30fc\u30c8\u304b\u3089\u63a5\u7d9a\u78ba\u8a8d\u3057\u3066\u307f\u307e\u3057\u3087\u3046\u3002<\/p>\n<pre class=\"brush: plain; highlight: [1]; title: ; notranslate\" title=\"\">\r\n$ systemctl status tftpd-hpa\r\n\u25cf tftpd-hpa.service - LSB: HPA's tftp server\r\n   Loaded: loaded (\/etc\/init.d\/tftpd-hpa; generated)\r\n   Active: active (running) since Sun 2020-11-08 11:46:15 JST; 3min 58s ago\r\n<\/pre>\n<h2>tftpd-hpa\u306e\u81ea\u52d5\u6a5f\u80fd\u306e\u72b6\u614b\u306e\u78ba\u8a8d<\/h2>\n<p>\u30b5\u30fc\u30d3\u30b9\u3092\u78ba\u8a8d\u3059\u308b\u3068\u300cgenerated\u300d\u3068\u306a\u3063\u3066\u304a\u308a\u3001\u81ea\u52d5\u8d77\u52d5\u3055\u308c\u307e\u3059\u3002<\/p>\n<pre class=\"brush: plain; highlight: [1]; title: ; notranslate\" title=\"\">\r\n$ systemctl list-unit-files | grep tftpd-hpa\r\ntftpd-hpa.service                              generated      \r\n<\/pre>\n<h2>tftpd-hpa\u306e\u8a2d\u5b9a\u306e\u78ba\u8a8d<\/h2>\n<p>tftpd-hpa\u306e\u8a2d\u5b9a\u3092\u78ba\u8a8d\u3057\u307e\u3059\u3002\u30d5\u30a1\u30a4\u30eb\u3092\u914d\u7f6e\u3057\u305f\u308a\u3001\u30a2\u30c3\u30d7\u30ed\u30fc\u30c9\u3055\u308c\u308b\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306f\u3001\u300cTFTP_DIRECTORY\u300d\u3067\u6307\u5b9a\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"brush: plain; highlight: [1,4]; title: ; notranslate\" title=\"\">\r\n$ cat tftpd-hpa \r\n# \/etc\/default\/tftpd-hpa\r\n\r\nTFTP_USERNAME=&quot;tftp&quot;\r\nTFTP_DIRECTORY=&quot;\/var\/lib\/tftpboot&quot;\r\nTFTP_ADDRESS=&quot;:69&quot;\r\nTFTP_OPTIONS=&quot;--secure&quot;\r\n<\/pre>\n<p>\u30a2\u30c3\u30d7\u30ed\u30fc\u30c9\u3092\u53ef\u80fd\u306b\u3059\u308b\u305f\u3081\u306b\u306f\u3001\u300cTFTP_OPTIONS\u300d\u3092\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u300cTFTP_OPTIONS=\"--secure --create\"\u300d\u306b\u5909\u66f4\u3057\u307e\u3059\u3002\u3053\u306e\u8a2d\u5b9a\u3092\u884c\u308f\u306a\u3044\u3068\u3001put\u3057\u305f\u3068\u304d\u306b\u300cError code 1: File not found\u300d\u306e\u30a8\u30e9\u30fc\u3067\u30a2\u30c3\u30d7\u30ed\u30fc\u30c9\u3067\u304d\u307e\u305b\u3093\u3002<\/p>\n<pre class=\"brush: plain; highlight: [1,7]; title: ; notranslate\" title=\"\">\r\n$ cat tftpd-hpa \r\n# \/etc\/default\/tftpd-hpa\r\n\r\nTFTP_USERNAME=&quot;tftp&quot;\r\nTFTP_DIRECTORY=&quot;\/var\/lib\/tftpboot&quot;\r\nTFTP_ADDRESS=&quot;:69&quot;\r\nTFTP_OPTIONS=&quot;--secure --create&quot;\r\n<\/pre>\n<h2>\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306e\u30a2\u30af\u30bb\u30b9\u6a29\u306e\u5909\u66f4<\/h2>\n<p>\u30a2\u30c3\u30d7\u30ed\u30fc\u30c9\u3092\u53ef\u80fd\u306b\u3059\u308b\u305f\u3081\u306f\u3001\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306e\u30a2\u30af\u30bb\u30b9\u6a29\u306e\u5909\u66f4\u3082\u884c\u3046\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u306e\u307f\u3067\u3042\u308c\u3070\u3001\u30c7\u30d5\u30a9\u30eb\u30c8\u306e\u307e\u307e\u3067\u53ef\u80fd\u3067\u3059\u3002<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\n$ ls -ld \/var\/lib\/tftpboot\r\ndrwxr-xr-x 2 root nogroup 4096 Nov  8 12:21 \/var\/lib\/tftpboot\r\n$ sudo chgrp tftp \/var\/lib\/tftpboot\r\n$ sudo chmod 775 \/var\/lib\/tftpboot\r\n$ ls -ld \/var\/lib\/tftpboot\r\ndrwxrwxr-x 2 root tftp 4096 Nov  8 12:21 \/var\/lib\/tftpboot\r\n<\/pre>\n<h2>\u304a\u308f\u308a\u306b<\/h2>\n<p>tftpd-hpa\u3067\u3001\u30a2\u30c3\u30d7\u30ed\u30fc\u30c9\u3092\u53ef\u80fd\u306b\u3059\u308b\u305f\u3081\u306b\u306f\u3001\u8a2d\u5b9a\u5909\u66f4\u304c\u5fc5\u8981\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<h2>\u53c2\u8003\u60c5\u5831<\/h2>\n<ul>\n<li><a href=\"https:\/\/ubuntu.com\/server\" target=\"_blank\" rel=\"noopener noreferrer\">Ubuntu Server<\/a><\/li>\n<li><a href=\"https:\/\/blog.ubuntu.com\/\" target=\"_blank\" rel=\"noopener noreferrer\">ubuntu blog<\/a><\/li>\n<li><a href=\"https:\/\/wiki.ubuntu.com\/\" target=\"_blank\" rel=\"noopener noreferrer\">ubuntu wiki<\/a><\/li>\n<\/ul>\n<h2>\u95a2\u9023\u8a18\u4e8b<\/h2>\n<div class=\"sc_getpost\"><a class=\"clearfix\" href=\"https:\/\/lab4ict.com\/system\/archives\/5239\" ><div class=\"sc_getpost_thumb post-box-thumbnail__wrap\"><img decoding=\"async\" src=\"data:image\/gif;base64,R0lGODdhAQABAPAAAN3d3QAAACwAAAAAAQABAAACAkQBADs=\" width=\"150\" height=\"150\" alt=\"\u3010\u8a18\u4e8b\u4e00\u89a7\u3011Debian\u7cfb\u306eOS\u3092\u4f7f\u3044\u3053\u306a\u3059\uff01\" loading=\"lazy\" data-src=\"https:\/\/lab4ict.com\/system\/wp-content\/uploads\/2018\/08\/eye_debian_04-150x150.png\" class=\"lazyload\"><\/div><div class=\"title\">\u3010\u8a18\u4e8b\u4e00\u89a7\u3011Debian\u7cfb\u306eOS\u3092\u4f7f\u3044\u3053\u306a\u3059\uff01<\/div><div class=\"substr\">Debian\u7cfb\u306eOS\u3092\u4f7f\u3044\u3053\u306a\u3059\u305f\u3081\u306e\u8a18\u4e8b\u4e00\u89a7\u3092\u63b2\u8f09\u3057\u307e\u3059\u3002...<\/div><\/a><\/div>\n<h2>\u95a2\u9023\u66f8\u7c4d\uff08Amazon\uff09<\/h2>\n<p><a href=\"https:\/\/amzn.to\/3vqrEPc\" rel=\"noopener\" target=\"_blank\"><img decoding=\"async\" class=\"paapi5-pa-product-image-source\" src=\"https:\/\/m.media-amazon.com\/images\/I\/51p2j7BlgUL._SL160_.jpg\" alt=\"N\/A\"><\/a><\/p>\n<hr \/>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Ubuntu Server 18.04 LTS\u306bTFTP\u30b5\u30fc\u30d0\uff08tftpd-hpa\uff09\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u307e\u3059\u3002\u30eb\u30fc\u30bf\u3084\u30b9\u30a4\u30c3\u30c1\u306e\u8a2d\u5b9a\u306e\u30d0\u30c3\u30af\u30a2\u30c3\u30d7\u7b49\u3067\u3001TFTP\u30b5\u30fc\u30d0\u304c\u4f7f\u7528\u3057\u305f\u304f\u306a\u3063\u305f\u5834\u5408\u306e\u307f\u4f7f\u7528\u3059\u308b\u60f3\u5b9a\u3067\u3059\u3002 vsftpd\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb ap\u2026<\/p>\n","protected":false},"author":1,"featured_media":5284,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[167],"tags":[538,539,51,274,361],"class_list":["post-3758","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-ubuntu-server","tag-tftp","tag-tftpd-hpa","tag-ubuntu","tag-ubuntu-desktop","tag-ubuntu-desktop-18-04"],"_links":{"self":[{"href":"https:\/\/lab4ict.com\/system\/wp-json\/wp\/v2\/posts\/3758","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/lab4ict.com\/system\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/lab4ict.com\/system\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/lab4ict.com\/system\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/lab4ict.com\/system\/wp-json\/wp\/v2\/comments?post=3758"}],"version-history":[{"count":5,"href":"https:\/\/lab4ict.com\/system\/wp-json\/wp\/v2\/posts\/3758\/revisions"}],"predecessor-version":[{"id":12469,"href":"https:\/\/lab4ict.com\/system\/wp-json\/wp\/v2\/posts\/3758\/revisions\/12469"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/lab4ict.com\/system\/wp-json\/wp\/v2\/media\/5284"}],"wp:attachment":[{"href":"https:\/\/lab4ict.com\/system\/wp-json\/wp\/v2\/media?parent=3758"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lab4ict.com\/system\/wp-json\/wp\/v2\/categories?post=3758"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lab4ict.com\/system\/wp-json\/wp\/v2\/tags?post=3758"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}