CentOS 7 to Windows, can list smb shares but cannot mount

General support questions
mgoblue0970
Posts: 37
Joined: 2013/01/02 03:39:20

Re: CentOS 7 to Windows, can list smb shares but cannot mount

Post by mgoblue0970 » 2018/06/25 19:52:00

hunter86_bg wrote:
2018/06/24 04:14:10
Can you try to mount with adding the

Code: Select all

sec=ntlmv2i

Code: Select all

sudo mount -v -t cifs //10.242.34.103/MyShare /mnt -o username=Administrator,sec=ntlmv2i
[sudo] password for dogzilla: 
Password for Administrator@//10.242.34.103/MyShare:  **********
mount.cifs kernel mount options: ip=10.242.34.103,unc=\\10.242.34.103\MyShare,sec=ntlmv2i,user=Administrator,pass=********
mount error(524): Unknown error 524
Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)

hunter86_bg
Posts: 2019
Joined: 2015/02/17 15:14:33
Location: Bulgaria
Contact:

Re: CentOS 7 to Windows, can list smb shares but cannot mount

Post by hunter86_bg » 2018/06/26 04:16:05

Have you updated to latest patches ?
I saw similar bug for Fedora and the issue there was with the kernel.
Also, try with 'vers=1.0'.

mgoblue0970
Posts: 37
Joined: 2013/01/02 03:39:20

Re: CentOS 7 to Windows, can list smb shares but cannot mount

Post by mgoblue0970 » 2018/06/29 20:37:14

Using vers=1.0 as an argument to smbclient doesn't change the results... which is weird because the output thrown says:

Code: Select all

Failed to connect with SMB1 -- no workgroup available
but yet, explicitly providing the version doesn't help.

gjaltemba
Posts: 49
Joined: 2016/11/29 15:23:25

Re: CentOS 7 to Windows, can list smb shares but cannot mount

Post by gjaltemba » 2018/06/29 23:53:04

If you want to test with SMB V1.0 client then need to enable SMB V1.0 on W2K8 server and reboot.

What is the status of the Workstation service on W2K8 server?

mgoblue0970
Posts: 37
Joined: 2013/01/02 03:39:20

Re: CentOS 7 to Windows, can list smb shares but cannot mount

Post by mgoblue0970 » 2018/07/02 16:04:24

If you want to test with SMB V1.0 client then need to enable SMB V1.0 on W2K8 server and reboot.
I added HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\LanmanServer\Parameters\SMB1 | DWORD = 1
What is the status of the Workstation service on W2K8 server?

Code: Select all

C:\Users\Administrator>sc query LanmanWorkstation

SERVICE_NAME: LanmanWorkstation
        TYPE               : 20  WIN32_SHARE_PROCESS
        STATE              : 4  RUNNING

gjaltemba
Posts: 49
Joined: 2016/11/29 15:23:25

Re: CentOS 7 to Windows, can list smb shares but cannot mount

Post by gjaltemba » 2018/07/03 15:30:46

I made a fresh install of W2K8R2 SP1 and did all the updates. Added File Services role. SMB1 is disabled. Unable to reproduce your test results.

The following works for me

Code: Select all

mount -v -t cifs //ip/sharename /mnt -o username=Administrator,vers=2.1
Do you have MS Message Analyzer installed?
Are you able to connect to share from elsewhere sucessfully?

What is the output of

Code: Select all

sc.exe qc lanmanworkstation

mgoblue0970
Posts: 37
Joined: 2013/01/02 03:39:20

Re: CentOS 7 to Windows, can list smb shares but cannot mount

Post by mgoblue0970 » 2018/07/03 21:16:09

Are you able to connect to share from elsewhere sucessfully [sic]?
I cannot connect to this 2008 R2 server via SMB from anywhere. Please see the first post regarding the commands used and output received.
sc.exe qc lanmanworkstation
Posted that already; it's in the previous reply.

gjaltemba
Posts: 49
Joined: 2016/11/29 15:23:25

Re: CentOS 7 to Windows, can list smb shares but cannot mount

Post by gjaltemba » 2018/07/03 22:16:46

Maybe not a centos problem if the windows server is borked. Suggest that you install MS message analyzer or some packet sniffer to see what is going on.

USAGE:
sc <server> [command] [service name] <option1> <option2>...

The option <server> has the form "\\ServerName"
Further help on commands can be obtained by typing: "sc [command]"
Commands:
query-----------Queries the status for a service, or
enumerates the status for types of services.

qc--------------Queries the configuration information for a service.

jxfish2
Posts: 24
Joined: 2013/03/08 15:07:48

Re: CentOS 7 to Windows, can list smb shares but cannot mount

Post by jxfish2 » 2018/12/19 14:03:08

Was this issue ever resolved?

I did not see a resolution in this thread.

I am having a similar issue with a new install of CentOS 7.

The procedures I am using have been working fine with all of my CentOS 6 and RHEL 6 servers.

But, my documented procedures are not working with CentOS 7.

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

Re: CentOS 7 to Windows, can list smb shares but cannot mount

Post by TrevorH » 2018/12/19 15:32:17

Be aware that all recent samba versions for both el6 and el7 have had SMB1 disabled. That may well explain the issues.
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