{"id":17473,"date":"2024-10-01T10:47:19","date_gmt":"2024-10-01T02:47:19","guid":{"rendered":"https:\/\/blog.iyatt.com\/?p=17473"},"modified":"2024-10-01T19:28:29","modified_gmt":"2024-10-01T11:28:29","slug":"%e6%a0%91%e8%8e%93%e6%b4%be%e4%b8%8a-www-data-%e7%94%a8%e6%88%b7%e6%97%a0%e6%b3%95%e8%ae%bf%e9%97%ae%e9%bb%98%e8%ae%a4%e6%99%ae%e9%80%9a%e7%94%a8%e6%88%b7%e8%87%aa%e5%8a%a8%e6%8c%82%e8%bd%bd%e7%9a%84","status":"publish","type":"post","link":"https:\/\/blog.iyatt.com\/?p=17473","title":{"rendered":"\u6811\u8393\u6d3e\u4e0a www-data \u65e0\u6cd5\u8bbf\u95ee\u9ed8\u8ba4\u7684\u666e\u901a\u7528\u6237\u81ea\u52a8\u6302\u8f7d\u7684\u5b58\u50a8\u8bbe\u5907\u3010\u672a\u5b8c\u7f8e\u89e3\u51b3\u3011"},"content":{"rendered":"<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_82_2 ez-toc-wrap-center counter-hierarchy ez-toc-counter ez-toc-light-blue ez-toc-container-direction\">\n<div class=\"ez-toc-title-container\">\n<p class=\"ez-toc-title ez-toc-toggle\" style=\"cursor:pointer\">\u76ee\u5f55<\/p>\n<span class=\"ez-toc-title-toggle\"><a href=\"#\" class=\"ez-toc-pull-right ez-toc-btn ez-toc-btn-xs ez-toc-btn-default ez-toc-toggle\" aria-label=\"Toggle Table of Content\"><span class=\"ez-toc-js-icon-con\"><span class=\"\"><span class=\"eztoc-hide\" style=\"display:none;\">Toggle<\/span><span class=\"ez-toc-icon-toggle-span\"><svg style=\"fill: #999;color:#999\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" class=\"list-377408\" width=\"20px\" height=\"20px\" viewBox=\"0 0 24 24\" fill=\"none\"><path d=\"M6 6H4v2h2V6zm14 0H8v2h12V6zM4 11h2v2H4v-2zm16 0H8v2h12v-2zM4 16h2v2H4v-2zm16 0H8v2h12v-2z\" fill=\"currentColor\"><\/path><\/svg><svg style=\"fill: #999;color:#999\" class=\"arrow-unsorted-368013\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"10px\" height=\"10px\" viewBox=\"0 0 24 24\" version=\"1.2\" baseProfile=\"tiny\"><path d=\"M18.2 9.3l-6.2-6.3-6.2 6.3c-.2.2-.3.4-.3.7s.1.5.3.7c.2.2.4.3.7.3h11c.3 0 .5-.1.7-.3.2-.2.3-.5.3-.7s-.1-.5-.3-.7zM5.8 14.7l6.2 6.3 6.2-6.3c.2-.2.3-.5.3-.7s-.1-.5-.3-.7c-.2-.2-.4-.3-.7-.3h-11c-.3 0-.5.1-.7.3-.2.2-.3.5-.3.7s.1.5.3.7z\"\/><\/svg><\/span><\/span><\/span><\/a><\/span><\/div>\n<nav><ul class='ez-toc-list ez-toc-list-level-1 ' ><li class='ez-toc-page-1 ez-toc-heading-level-1'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/blog.iyatt.com\/?p=17473\/#2024101\" >2024.10.1<\/a><\/li><\/ul><\/nav><\/div>\n<p>\u73af\u5883\uff1a<\/p>\n<ul>\n<li>\u6811\u8393\u6d3e CM4<\/li>\n<li>raspios 20240704 Debian 12 arm64<\/li>\n<\/ul>\n<h1><span class=\"ez-toc-section\" id=\"2024101\"><\/span>2024.10.1<span class=\"ez-toc-section-end\"><\/span><\/h1>\n<p>\u6811\u8393\u6d3e\u4e0a\u9884\u88c5\u7684\u6587\u4ef6\u6d4f\u89c8\u5668\u662f PCManFM\uff0c\u5728\u63d2\u5165\u5916\u90e8\u5b58\u50a8\u8bbe\u5907\u7684\u65f6\u5019\u9ed8\u8ba4\u4f1a\u81ea\u52a8\u6302\u8f7d\u8bbe\u5907<br \/>\n\u5728 Edit-Preferences\uff0c\u5207\u6362\u5230 Volume Management\uff0c\u8fd9\u91cc\u5c31\u662f\u8bbe\u7f6e\u81ea\u52a8\u6302\u8f7d\u7684\u5730\u65b9\uff0c\u9ed8\u8ba4\u662f\u52fe\u9009\u7684\u3002<br \/>\n\u81ea\u52a8\u6302\u8f7d\u4f1a\u628a\u5b58\u50a8\u8bbe\u5907\u6302\u8f7d\u5230 \/media\/\u7528\u6237\u540d\/\u5b58\u50a8\u8bbe\u5907\u5206\u533a\u540d \u4e0a<br \/>\n<img decoding=\"async\" data-src=\"https:\/\/blog.iyatt.com\/wp-content\/uploads\/2024\/10\/image-1727740943832.png\" alt=\"file\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" class=\"lazyload\" style=\"--smush-placeholder-width: 328px; --smush-placeholder-aspect-ratio: 328\/340;\" \/><\/p>\n<p><img decoding=\"async\" data-src=\"https:\/\/blog.iyatt.com\/wp-content\/uploads\/2024\/10\/image-1727741008391.png\" alt=\"file\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" class=\"lazyload\" style=\"--smush-placeholder-width: 796px; --smush-placeholder-aspect-ratio: 796\/609;\" \/><\/p>\n<p>\u524d\u9762\u6709\u6b21\u90e8\u7f72 Nextcloud \uff08NC\uff09\u51c6\u5907\u6269\u5c55\u5b58\u50a8\u8bbe\u5907\u7684\u65f6\u5019\u5c31\u53d1\u73b0\uff0cNC \u65e0\u6cd5\u8bbf\u95ee\u5230\u81ea\u52a8\u6302\u8f7d\u7684\u5b58\u50a8\u8bbe\u5907\uff0c\u5f53\u65f6\u662f\u91c7\u7528\u624b\u52a8\u91cd\u65b0\u6302\u8f7d\u7684\u65b9\u5f0f\u4e34\u65f6\u6d4b\u8bd5\u7684\u3002\u8fd9\u6b21\u6211\u53c8\u90e8\u7f72\u4e86\u4e00\u4e2a ZoneMinder \u76d1\u63a7\uff0c\u6253\u7b97\u6269\u5c55\u5b58\u50a8\u8bbe\u5907\u7528\u4e8e\u4fdd\u5b58\u5f55\u50cf\uff0c\u5c31\u5148\u6d4b\u8bd5\u4e86\u4e0b\uff0c\u679c\u7136 www-data \uff08Nginx\u3001Apache2\u90fd\u662f\u4ee5\u8fd9\u4e2a\u7528\u6237\u6765\u6267\u884c\uff09\u6ca1\u6709\u6743\u9650\u8bbf\u95ee\u81ea\u52a8\u6302\u8f7d\u7684\u8def\u5f84<br \/>\n<img decoding=\"async\" data-src=\"https:\/\/blog.iyatt.com\/wp-content\/uploads\/2024\/10\/image-1727741234383.png\" alt=\"file\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" class=\"lazyload\" style=\"--smush-placeholder-width: 445px; --smush-placeholder-aspect-ratio: 445\/45;\" \/><\/p>\n<p>\u67e5\u770b\u6302\u8f7d\u8def\u5f84\uff0c\u7528\u6237\u548c\u7528\u6237\u7ec4\u90fd\u662f\u9ed8\u8ba4\u666e\u901a\u7528\u6237\uff08\u5f53\u524d\u7528\u6237\uff09\uff0c\u6743\u9650\u4e5f\u662f rwxrwxrwx\uff0c\u7406\u8bba\u4e0a\u6240\u5c5e\u7528\u6237\u3001\u6240\u5c5e\u7528\u6237\u7ec4\u3001\u5176\u5b83\u7528\u6237\u7ec4\u90fd\u5e94\u8be5\u6709\u8bfb\u3001\u5199\u3001\u6267\u884c\u6743\u9650\u7684<br \/>\n<img decoding=\"async\" data-src=\"https:\/\/blog.iyatt.com\/wp-content\/uploads\/2024\/10\/image-1727741358985.png\" alt=\"file\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" class=\"lazyload\" style=\"--smush-placeholder-width: 346px; --smush-placeholder-aspect-ratio: 346\/53;\" \/><\/p>\n<p>\u8fd9\u5c31\u5f88\u5947\u602a\uff0c\u7136\u540e\u6211\u6d4b\u8bd5\u4e86\u628a www-data \u6dfb\u52a0\u5230\u7528\u6240\u5c5e\u6237\u7ec4\u751a\u81f3 root \u7528\u6237\u7ec4\uff0c\u90fd\u6ca1\u6709\u5bf9\u6302\u8f7d\u8def\u5f84\u7684\u8bbf\u95ee\u6743\u9650\uff0c\u6240\u4ee5\u73b0\u5728\u5b9e\u9645\u7684\u60c5\u51b5\u662f\u6302\u8f7d\u8005\u540c\u7ec4\u7528\u6237\u548c\u5176\u5b83\u7ec4\u90fd\u65e0\u6cd5\u8bbf\u95ee\uff0c\u53ea\u6709\u6240\u5c5e\u7528\u6237\u4ee5\u53ca root \u8fd9\u4e2a\u6700\u9ad8\u6743\u9650\u7528\u6237\u53ef\u4ee5\u8bbf\u95ee\u5230\uff0c\u8fd9\u5c31\u6709\u70b9\u65e0\u4ece\u4e0b\u624b\u4e86\u3002<\/p>\n<p>\u540e\u9762\u53c8\u8bd5\u8fc7\u914d\u7f6e udev\uff08\u5e0c\u671b\u81ea\u5b9a\u4e49\u81ea\u52a8\u6302\u8f7d\u89c4\u5219\uff09\uff0c\u4f46\u662f\u63d2\u5165 USB \u5b58\u50a8\u8bbe\u5907\u65e0\u8bba\u5982\u4f55\u90fd\u4e0d\u80fd\u89e6\u53d1 ACTION==&quot;add&quot;, SUBSYSTEM==&quot;block&quot; \u4e8b\u4ef6\uff0c\u5b8c\u5168\u6ca1\u6cd5\u7528\uff0c\u65e5\u5fd7\u663e\u793a\u7684<\/p>\n<pre><code class=\"language-bash\">Oct 01 10:37:49 raspberrypi mtp-probe[239184]: checking bus 1, device 33: &quot;\/sys\/devices\/platform\/scb\/fd500000.pcie\/pci0000:00\/0000:00:00.0\/0000:01:00.0\/usb1\/1-1\/1-1.4&quot;\nOct 01 10:37:49 raspberrypi mtp-probe[239184]: bus: 1, device: 33 was not an MTP device<\/code><\/pre>\n<p>\u6298\u817e\u8fd9\u4e2a\u5c31\u82b1\u4e86\u6211\u4e00\u4e0a\u5348\u7684\u4e8b\u4ef6\uff0c\u8fd8\u662f\u6beb\u65e0\u8fdb\u5c55\uff0c\u6682\u65f6\u653e\u5f03\u3002\u4e34\u65f6\u65b9\u6848\u5c31\u662f \u5173\u95ed PCManFM \u7684\u81ea\u52a8\u6302\u8f7d\uff0c\u7136\u540e\u624b\u52a8\u5c06 USB \u5b58\u50a8\u8bbe\u5907\u4ee5 www-data \u6302\u8f7d\uff0c\u5199\u4e86\u4e00\u4e2a\u7b80\u5355\u811a\u672c<\/p>\n<pre><code class=\"language-bash\">#!\/usr\/bin\/env bash\n\nDEVNAME=$1\nMOUNT_POINT=&quot;\/media\/$1&quot;\n\nsudo mkdir -p $MOUNT_POINT\nsudo chown www-data:www-data $MOUNT_POINT\nsudo mount -o uid=www-data,gid=www-data \/dev\/$DEVNAME $MOUNT_POINT<\/code><\/pre>\n<p>\u4fdd\u5b58\u540e\u6dfb\u52a0\u53ef\u6267\u884c\u6743\u9650\uff0c\u6267\u884c\u811a\u672c\u7684\u65f6\u5019\u540e\u9762\u8ddf\u4e0a USB \u5b58\u50a8\u8bbe\u5907\u7684\u5757\u6587\u4ef6\u540d<br \/>\n<img decoding=\"async\" data-src=\"https:\/\/blog.iyatt.com\/wp-content\/uploads\/2024\/10\/image-1727751194055.png\" alt=\"file\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" class=\"lazyload\" style=\"--smush-placeholder-width: 321px; --smush-placeholder-aspect-ratio: 321\/15;\" \/><\/p>\n<p><img decoding=\"async\" data-src=\"https:\/\/blog.iyatt.com\/wp-content\/uploads\/2024\/10\/image-1727751218168.png\" alt=\"file\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" class=\"lazyload\" style=\"--smush-placeholder-width: 445px; --smush-placeholder-aspect-ratio: 445\/71;\" \/><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u73af\u5883\uff1a \u6811\u8393\u6d3e CM4 raspios 20240704 Debian 12 arm64 2024.10.1  [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"zakra_page_container_layout":"customizer","zakra_page_sidebar_layout":"customizer","zakra_remove_content_margin":false,"zakra_sidebar":"customizer","zakra_transparent_header":"customizer","zakra_logo":0,"zakra_main_header_style":"default","zakra_menu_item_color":"","zakra_menu_item_hover_color":"","zakra_menu_item_active_color":"","zakra_menu_active_style":"","zakra_page_header":true,"_lmt_disableupdate":"no","_lmt_disable":"no","footnotes":""},"categories":[1,598,600],"tags":[],"class_list":["post-17473","post","type-post","status-publish","format-standard","hentry","category-all","category-linux","category-600"],"modified_by":"IYATT-yx","_links":{"self":[{"href":"https:\/\/blog.iyatt.com\/index.php?rest_route=\/wp\/v2\/posts\/17473","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.iyatt.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.iyatt.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.iyatt.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.iyatt.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=17473"}],"version-history":[{"count":0,"href":"https:\/\/blog.iyatt.com\/index.php?rest_route=\/wp\/v2\/posts\/17473\/revisions"}],"wp:attachment":[{"href":"https:\/\/blog.iyatt.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=17473"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.iyatt.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=17473"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.iyatt.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=17473"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}