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

Source: Internet
Author: User

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?

1 [global]
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
5 # Save and activate
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.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.