在使用 smbclient 來測試的時候,
出現了下面這個錯誤。
1 |
Server requested plaintext password but 'client plaintext auth' is disabled |
密碼也輸入正確,可是不曉得為什麼會有這個錯誤。
Google 一下,有兩個方法可以解決。
1. 使用 cfg file
2. 在 smb.conf 設定。
Solution 1.
(a) 建立一個檔案,比如 my.cfg,內容如下:
2 |
client lanman auth = yes |
3 |
client plaintext auth = yes |
(b)
2 |
smbclient -s my.cfg -L myhome |
Solution 2.
1 |
sudo vim /etc/samba/smb.conf
|
3 |
client lanman auth = yes
|
4 |
client plaintext auth = yes
|
6 |
sudo /etc/init.d/samba restart
|
7 |
smbclient -s my.cfg -L myhome |
相关文章:
-
2022-12-23
-
2022-12-23
-
2022-12-23
-
2022-12-23
-
2022-01-05
-
2022-01-21
-
2022-12-23
-
2022-12-23