cifs/samba support broken?

General support questions
Post Reply
palemantle
Posts: 3
Joined: 2018/06/27 04:20:58

cifs/samba support broken?

Post by palemantle » 2018/06/27 04:41:06

Apologies if I should be adding this to an existing thread. There's at least one where similar symptoms (samba) are discussed (viewtopic.php?f=13&t=66925).

Current config:
Kernel: 2.6.32-696.30.1.el6.x86_64
CentOS version: CentOS release 6.9 (Final)

I do have cifs-utils installed for what that's worth. 'yum info cifs-utils' tells me I have version 4.8.1.

Have done a full 'yum update', have nothing excluded in /etc/yum.conf, and have no third party repos active.

Issues/symptoms:
I can no longer (for a couple of weeks now) do the following to mount ntfs drives from machines running Win10:
/etc/fstab: <network_path> <mount_path> cifs ...

(or)

post-login command: mount -t cifs <network_path> <mount_path> ...

I end up with a "Host is down" mount error. I've tried adding vers=1.0/2.0/2.1/3.0 (one at a time) to the mount command in the options section (-o= ...) but none of that helps.


As an alternative, I've tried the following:
smbclient -L <target IP/hostname> -U <user> -m SMB<1/2/3> (again one at a time).

That triggers an "Unrecognized protocol level SMB<1/2/3> regardless of which one I try.


Any suggestions would be much appreciated.

User avatar
TrevorH
Site Admin
Posts: 33202
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: cifs/samba support broken?

Post by TrevorH » 2018/06/27 09:33:23

"Host is down" sounds more like a firewall thing. Can you ping the destination server?
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

palemantle
Posts: 3
Joined: 2018/06/27 04:20:58

Re: cifs/samba support broken?

Post by palemantle » 2018/07/04 06:25:34

Sorry been out the last few days.

Yes, I can ping by both IP and hostname both ways.

palemantle
Posts: 3
Joined: 2018/06/27 04:20:58

Re: cifs/samba support broken?

Post by palemantle » 2018/07/06 08:17:43

This is the message I get when I try a mount:

My full mount command looks like this:
sudo mount -t cifs <share_name> <mount_point> -o username=<blah>,password=<blahblah>,iocharset=utf8,file_mode=0777,dir_mode=0777

And here's the message I get:
mount error(112): Host is down
Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)

As mentioned, I can ping the machine that's apparently down. I also have the Windows machine listed in my /etc/hosts.

Any suggestions please? Any particular ports that I need to open on the Windows machine firewall? Firewall is completely disabled on my CentOS machine at the minute (just trying different things). CentOS build is 6.10 (Final).

ETA: Windows Firewall says SMB over TCP (inbound) is allowed over local port 445. Not sure if that's the port I want.

User avatar
TrevorH
Site Admin
Posts: 33202
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: cifs/samba support broken?

Post by TrevorH » 2018/07/06 10:16:47

https://access.redhat.com/discussions/3002961 says it may be down to Microsoft disabling SMB1 by default on Windows servers. It also has this comment
Opened case with redhat - They said that if you are running RHEL 4,5,6 - you can only use SMBV1 protocol - You would need to upgrade to RHEL7 to use SMBv2 or 3 https://access.redhat.com/solutions/1178753
Does that sound like a possible explanation?
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

Post Reply