on my new laptop I tried to mount a share of a windows computer using samba. As far as I can tell I have configured everything (samba server, firewall, domain) as with my old laptop (suse 11.1) and using Dolphin it works perfectly. I can also connect from my windows computer to my linux share alright using netlogon.
The problem is, I need a command window mount for applying my backup script. And the mount command in the form
mount -t cifs -o username=WindowsDomain/MyWindowsName //WindowsDomain/ShareName /media/smb/ShareName
gives me: mount error: could not resolve address for WindowsDomain: Unknown error
If I use the ip address, so
mount -t cifs -o username=WindowsDomain/MyWindowsName //ip-address/ShareName /media/smb/ShareName
gives me: mount error(5): Input/output error
(but at least I was asked for my username/password now)
On the net I found one hint saying one has to use one more option now -o sec=ntlm. The syntax is somewhat awkward then. After many errors I found it is now:
mount -t cifs //ip-address/ShareName /media/smb/ShareName -o sec=ntlm,username=WindowsDomain/MyName
and something indeed changed. I now get: mount error(13): Permission denied after entering username/password
I’ve tried for days and searched this forum as well as the net but could not succeed. On my old openSuse computer the first form of the mount command still works perfectly. Please note, it also works using Dolphin, so the general configuration cannot be too wrong.
Please help, what am I doing wrong?
Thank you for your efforts.