We have a NAS, which I can easily mount via CIFS, but I cannot access it via smbclient. On the NAS itself I have very little influence. I just got a permission for a set of shares there.
The mount via fstab works flawlessly via
//nasname.local/someshare /mnt/someshare cifs credentials=/home/.cifs/cifscredentials,iocharset=utf8,dir_mode=0777,file_mode=0777 0 0
I can also list the shares via
smbclient -L //nasname.local/ -N when i log in anonymously
Anonymous login successful Sharename Type Comment --------- ---- ------- IPC$ IPC IPC Service (NAS Server) Backup Disk Public Disk System default share Web Disk System default share Reconnecting with SMB1 for workgroup listing. Anonymous login successful Server Comment --------- ------- Workgroup Master --------- ------- WORKGROUP xxx
What doesnt work
I take now the same credentials to log into the NAS via smbclient
smbclient //nasname.local/someshare -U username and the the password, but I get the response
Enter WORKGROUP\username's password: tree connect failed: NT_STATUS_ACCESS_DENIED
So I'd like to know, what the problem could be, that a cifs-mount works but a connection via smbclient doesnt.
Solution c.f. further below