When smbclient is used for failover,
The following example is displayed.
View plain
Print?
1 |
Server requested plaintext password but 'client plaintext auth' is disabled |
The password is also correct, but it is not possible to have such a certificate.
Google, there are two solutions.
1. Use cfg file
2. Set it in smb. conf.
Solution 1.
(A) Create an example, for example, my. cfg. The content is as follows:
View plain
Print?
2 |
client lanman auth = yes |
3 |
client plaintext auth = yes |
(B)
View plain
Print?
1 |
# Myhome is the name of my other computer. |
2 |
smbclient -s my.cfg -L myhome |
3 |
# After login, the system will prompt you to access the password. This will not cause any problems when you access the password. |
Solution 2.
View plain
Print?
1 |
sudo vim /etc/samba/smb.conf |
2 |
# Add the following two rows to the region of [Global] |
3 |
client lanman auth = yes |
4 |
client plaintext auth = yes |
6 |
sudo /etc/init.d/samba restart |
7 |
smbclient -s my.cfg -L myhome |
8 |
# After login, the system will prompt you to access the password. This will not cause any problems when you access the password. |