smbclient //sharewiz/share -U user1%secret
returns:
Domain=[SHAREWIZ] OS=[Windows 6.1] Server=[Samba 4.3.9-Ubuntu] tree connect failed: NT_STATUS_ACCESS_DENIED
smbclient //sharewiz/share -U validuser%incorrect_password
returns:
session setup failed: NT_STATUS_LOGON_FAILURE
smbclient //sharewiz/share -U validuser%correct_password
returns:
Domain=[SHAREWIZ] OS=[Windows 6.1] Server=[Samba 4.3.9-Ubuntu] smb: \>
NOTE: If smbd is able to successfully authenticate the login name/password pair and that user is authorized to access the requested share, we are greeted with an smb: \> prompt.
smb: \> exit