1

This may look like an old thread. But I tried all types of solution which are provided. But no luck.

I have a Shared Folder from fileserver(windows server 2012 R2 - default samba 2.1)

My client side configurtion are:-
Version 3.5.10-114.el6

The packages are installed :-

rpm -qa | grep -i samba  
samba-winbind-clients-3.5.10-114.el6.x86_64  
samba-client-3.5.10-114.el6.x86_64  
samba-3.5.10-114.el6.x86_64  
samba-common-3.5.10-114.el6.x86_64  

The commands which I followed in Linux client

smbclient -L //hostname/USER -U domain/username -W domain

dmesg retruns a below error

[1907763.056610] CIFS VFS: cifs_mount failed w/return code = -112  

smbclient error:

Reconnecting with SMB1 for workgroup listing.  
protocol negotiation failed: NT_STATUS_CONNECTION_RESET  
Failed to connect with SMB1 -- no workgroup available  
Thomas
  • 4,155
  • 5
  • 21
  • 28
Prakash Asokan
  • 11
  • 1
  • 1
  • 5
  • Please try mounting it with sec=ntlmssp or sec=ntlmsspi as an -o (option) - smbclient complaining about SMB1 can be rectified by editing smb.conf and adding; client max protocol = SMB3 and client min protocol = SMB2_1 under [global] If these succeed, I'll ask it as an answer with some explanation. – Miuku Jul 21 '18 at 07:47
  • @Miu Thank you u for your quick reply. when I am adding the client min and max protocol, I am getting the ` Ignoring unknown parameter "Client Man Protocol ` – Prakash Asokan Jul 21 '18 at 17:30
  • It's "client max protocol" - also try to just mount the directory with: mount.cifs -o sec=ntlmssp,username=yourusername,domain=yourdomain //server/share /whereyouwanttoaccessit – Miuku Jul 21 '18 at 17:35
  • @Miuku the same error is coming again. mount error(112): Host is down. client max protocol and client min protocol is showing the Ignoring unknown parameter. – Prakash Asokan Jul 21 '18 at 17:47
  • Host is down? Perhaps you should try mounting it with the IP address of the server. – Miuku Jul 22 '18 at 04:05
  • Tried with IP address as well, but no luck. – Prakash Asokan Jul 24 '18 at 04:51

2 Answers2

1

On Ubuntu 18.04 LTS I was able to connect with:

sudo mount.cifs -o sec=ntlmssp,username=MY_USERNAME //SERVER_IP/SHARED_FOLDER ~/LOCAL_FOLDER

Adding client max protocol = SMB3 and client min protocol = SMB2_1 under [global] of /etc/samba/smb.conf caused error, I had to change SMB2_1 to SMB2. After which server said "Failed to connect with SMB1 -- no workgroup available"

banderlog013
  • 111
  • 2
0

The Main problem with CentOS version. After the upgrade from 6.0 to 6.10, the same mount -t cifs command works fine and can able to mount windows directory to CentOS server.

Prakash Asokan
  • 11
  • 1
  • 1
  • 5