输入
systemctl restart smb
systemctl restart nmb
后用另一台电脑输入:
> smbclient -L //192.168.0.100/share -U tom
Unable to initialize messaging context
Enter WORKGROUP\tom’s password:
Sharename Type Comment
--------- ---- -------
profiles Disk Network Profiles Service
users Disk All users
groups Disk All groups
print$ Disk Printer Drivers
share Disk
IPC$ IPC IPC Service (Samba 4.12.3-git.161.208cf9730eeSUSE-oS15.5-x86_64)
tom Disk Home Directories
Reconnecting with SMB1 for workgroup listing.
smbXcli_negprot_smb1_done: No compatible protocol selected by server.
protocol negotiation failed: NT_STATUS_INVALID_NETWORK_RESPONSE
Failed to connect with SMB1 -- no workgroup available
输入:
> smbclient //192.168.0.100/share -U tom 22:50:21
Unable to initialize messaging context
Enter WORKGROUP\tom’s password:
Try “help” to get a list of possible commands.
smb: >