掛載到共享資料夾

掛載到共享資料夾

當我嘗試掛載共享資料夾以複製文件時出現一個問題

從 ubuntu16.04 LTS 到我的 Windows 7 檔案系統

我使用以下命令來存取共享行為:

paultsai@ubuntu:~$ sudo mount.cifs //192.168.43.180/share2 /mnt/SHARE --verbose -o rw,username=PaulTsai
[sudo] password for paultsai: 
Password for PaulTsai@//192.168.43.180/share2:  ************
mount.cifs kernel mount options: ip=192.168.43.180,unc=\\192.168.43.180\share2,user=PaulTsai,pass=********
paultsai@ubuntu:/mnt/SHARE$ cp ~/errors_http500 .
cp: cannot create regular file './errors_http500': Permission denied

我嘗試更改資料夾屬性並使用 root 執行上述操作(透過sudo在 之前新增命令above commands)。但仍然失敗,我該怎麼做才能使其可執行?我對此感到非常奇怪!

答案1

CIFS 安全性在最近的核心版本中得到了加強。您可能想要新增iocharset=utf8,sec=ntlm,noserverino你的選擇,換句話說:

sudo mount.cifs //192.168.43.180/share2 /mnt/SHARE --verbose -o rw,username=PaulTsai,iocharset=utf8,sec=ntlm,noserverino

相關內容