I have been given access to a network share on a Windows 2000 server, which I need to access from a CentOs 7 machine.
I have created the credentials file:
username=MYUSER
password=MYPASS
domain=DOMAIN
and I can list the share correctly:
[root@localhost ~]# smbclient -L //share.domain.com -E -A /root/.credentials
Domain=[DOMAIN_NT_DOM1] OS=[Windows 5.0] Server=[Windows 2000 LAN Manager]
...
Even though sometimes I get an intermittent error saying:
Connection to share.domain.com failed (Error NT_STATUS_IO_DEVICE_ERROR)
NetBIOS over TCP disabled -- no workgroup available
I can even copy the files locally with the -Tc
switch.
However, when trying to mount the share, I get a "permission denied" error:
[root@localhost ~]# mount.cifs //share.domain.com/folder/folder2 /root/shared -o 'credentials=/root/.credentials,sec=ntlmv2' -v
domain=domain.com
mount.cifs kernel mount options: ip=172.16.70.4,unc=\\share.domain.com\folder,sec=ntlmv2,user=MYSUER,,domain=domain.com,prefixpath=folder2,pass=********
mount error(13): Permission denied
Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)
Why can I list and tar files with smbclient
but cannot mount the share?
man mount.cifs
?You could also try to set the option "vers" to "1.0", "2.0", "2.1", "3.0", maybe you're using the wrong protocol version.sec
andvers
, error message went fromPermission denied
toOperation not supported
orUnknown error 524
, still no good.domain=domain.com
?Shouldn't it bedomain=BERCO_NT_DOM1
as shown bysmbclient
(Domain=[BERCO_NT_DOM1] OS=[Windows 5.0] Server=[Windows 2000 LAN Manager]
)?