I'm trying to connect to a Windows share from CentOS 7.5.1804 to Windows Server 2008 R2 (no snickering and let's stay on topic please).
Details about the W2K8 server:
* has not been promoted to a domain controller
* resides on a flat network
* Everyone group has read/write to the share (I changed this for troubleshooting)
* the share is named MyShare
When I run this command from Linux:
Code: Select all
smbclient -L <IP> -U Administrator
Code: Select all
Sharename Type Comment
--------- ---- -------
ADMIN$ Disk Remote Admin
C$ Disk Default share
IPC$ IPC Remote IPC
MyShare Disk
Users Disk
Reconnecting with SMB1 for workgroup listing.
Connection to <IP> failed (Error NT_STATUS_RESOURCE_NAME_NOT_FOUND)
Failed to connect with SMB1 -- no workgroup available
Since the share was found, I pressed on with:
Code: Select all
mount -v -t cifs //<IP>/MyShare /mnt -o username=Administrator
Code: Select all
mount error(2): No such file or directory
Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)
https://unix.stackexchange.com/question ... -directory
...and started thinking I need to specify the version or ntlm level.
I tried this:
Code: Select all
mount -v -t cifs //<IP>/MyShare /mnt -o username=Administrator, vers=2.0
Code: Select all
mount -v -t cifs //<IP>/MyShare /mnt -o username=Administrator, sec=ntlmv2
Any suggestions how to get the mount command working would be greatly appreciated. Thanks!