作者withme (誰要跟我一起發瘋)
看板Linux
標題[問題] 樹莓派vsftpd
時間Sun Nov 26 11:57:27 2017
最近想在raspberry pi3上面建FTP
想請問權限問題
安裝vsftpd
$ sudo apt-get install vsftpd
完成後編輯config
# sudo nano /etc/vsftpd.conf
anonymous_enable=NO (不允許匿名登入)
local_enable=YES (允許本地端, 即樹莓派上可使用 FTP 伺服器)
write_enable=YES (允許檔案寫入)
local_umask=002
然後restart
$ sudo service vsftpd restart
之後由PC測試卻發現
用pi登錄
/home/pi 可以讀寫
/media/pi/TOURO 只能讀不能寫 (TOURO是外掛硬碟)
請問我還要檢查哪裡呢?
大感謝
--
※ 發信站: 批踢踢實業坊(ptt.cc), 來自: 36.226.234.251
※ 文章網址: https://webptt.com/m.aspx?n=bbs/Linux/M.1511668649.A.EED.html
1F:→ ChakraLinux: 你的外掛硬碟是不是ntfs…? 11/26 12:04
2F:→ hijkxyzuw: 你用 ssh 登入 touro 可以讀寫嗎?權限? 11/26 12:25
3F:→ withme: 外掛硬碟是ntfs.. 11/26 12:46
4F:→ withme: 用SSH登入,PI的根目錄可讀寫 外掛硬碟只能讀不能寫 11/26 12:47
5F:→ withme: 請問權限還有哪邊要檢查? umask=002想說讀寫都開了?? 11/26 12:49
6F:推 Bencrie: 問題是你有裝 ntfs-3g?kernel 的 ntfs driver 只能讀 11/26 12:53
7F:→ withme: 謝謝Bencrie回復,剛剛試著裝ntfs-3g 還是不行喔 11/26 13:19
8F:推 Bencrie: mount 的 uid ? 11/26 13:22
9F:→ withme: 硬碟名稱嗎? 就是TOURO 11/26 13:25
11F:→ galic: 類似這樣... 不是裝ntfs-3g就結束了 你要正確的mount 11/26 13:34
12F:→ galic: 問題不是出在你的ftp server設定 11/26 13:35
13F:→ withme: 謝謝galic回復,照文件上面說,在 Raspbian 中, 11/26 16:28
14F:→ withme: 只要有 USB 隨身碟插上Raspberry Pi系統就會自動掛載 11/26 16:29
15F:→ withme: 另外附上FTP write錯誤訊息, 11/26 16:31
16F:→ withme: open for write: received failure with description 'Fai 11/26 16:32
17F:→ withme: received failure with description 'Failure' 11/26 16:32
18F:→ withme: 再請幫忙指教了 謝謝 11/26 16:33
19F:→ withme: 突然發現硬碟不知為何被系統指定成唯讀,重插拔就解了 11/26 17:09
20F:→ withme: 謝謝大夥回復,謝謝PTT 11/26 17:10