Server requested plaintext password but ‘client plaintext auth’ is disabled

在使用 smbclient 來測試的時候,
出現了下面這個錯誤。

1 Server requested plaintext password but 'client plaintext auth' is disabled

密碼也輸入正確,可是不曉得為什麼會有這個錯誤。
Google 一下,有兩個方法可以解決。
1. 使用 cfg file
2. 在 smb.conf 設定。

Solution 1.
(a) 建立一個檔案,比如 my.cfg,內容如下:

1 [global]
2 client lanman auth = yes
3 client plaintext auth = yes

(b)

1 # myhome 是我另外一台電腦的名稱。
2 smbclient -s my.cfg -L myhome
3 # 輸入後會提示輸入密碼,這時輸入密碼就不會有問題了。


Solution 2.

1 sudo vim /etc/samba/smb.conf
2 # 找到 [global] 的區塊後,一樣加入下面兩行
3 client lanman auth = yes
4 client plaintext auth = yes
5 # 存檔離開
6 sudo /etc/init.d/samba restart
7 smbclient -s my.cfg -L myhome
8 # 輸入後會提示輸入密碼,這時輸入密碼就不會有問題了。
原文地址:https://www.cnblogs.com/google4y/p/2117721.html