Mounting Win7 share fails

Issues related to configuring your network
Post Reply
TomE
Posts: 20
Joined: 2011/09/19 22:09:35

Mounting Win7 share fails

Post by TomE » 2014/04/30 18:59:46

I am trying to mount a share on a Windows 7 machine on a user home space on a centos 5.10 box. There are shares on the Centos box that I can access, but trying to go the other way I get NT_STATUS_LOGON_FAILURE -13 error. Running smbclient -L from the command line gives me the same error. All the machines are set up with the same workgroup, there is no domain controller, it's a pretty simple arrangement that worked OK with XP machines, just not the new Windows 7 machines. Apparently authentication is failing, I just don't know why or how to troubleshoot it beyond changing the share options on the win7 box, which from what I can tell are all wide open.

command line mount command:

Code: Select all

mount -t cifs //tom1/Documents -o username=uname,password=pword /home/tom/backups/tom_docs
smb.conf:

Code: Select all

# 
[global]
	workgroup = workgroup 
	server string = Samba Server Version %v
	hosts allow = 127. 10.1.1. 

; getting inotify messages constantly. Kernel bug?

notify:inotify = false
kernel change notify = false

	log file = /var/log/samba/%m.log
	log level = 2
        security = user
	passdb backend = tdbsam

	load printers = yes
	cups options = raw
smbclient command:

Code: Select all

[tom@linux ~]$ smbclient -L tom1
Password:
session setup failed: NT_STATUS_LOGON_FAILURE
[tom@linux ~]$
smbcleint with ip address

Code: Select all

[tom@linux ~]$ smbclient -L 10.1.1.11
Password:
session setup failed: NT_STATUS_LOGON_FAILURE
[tom@linux ~]$

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

Re: Mounting Win7 share fails

Post by TrevorH » 2014/04/30 22:50:27

Are you using the samba-* packages or the samba3x-* packages in CentOS 5.10? You will probably have better luck talking to Windows 7 using the samba3x versions but you have to remove the samba ones and install the samba3x ones, they cannot coexist.
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

TomE
Posts: 20
Joined: 2011/09/19 22:09:35

Re: Mounting Win7 share fails

Post by TomE » 2014/05/01 11:18:04

Code: Select all

[tom@linux ~]$ rpm -qa | grep samba
samba-client-3.0.33-3.40.el5_10
samba-common-3.0.33-3.40.el5_10
system-config-samba-1.2.41-5.el5
samba-3.0.33-3.40.el5_10
I was able to mount an XP machine share, but win7 is still failing. Definitely appears to be a authentication issue, but I've made the win7 share available for everyone with full access, toggled the "send unencrypted passwords to 3rd party smb server" switch, and pretty much every other unsecure access edit I could find, nothing works. I've changed the log level in samba up to 6 to see if I could get a more verbose error message, but all I get it the "NT_STATUS_LOGON_FAILURE".

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

Re: Mounting Win7 share fails

Post by TrevorH » 2014/05/01 16:19:48

So, yes, you are using the older packages. You'll probably have better luck using the more recent samba3x ones:

Code: Select all

# rpm -qa samba\*
samba3x-domainjoin-gui-3.6.6-0.139.el5_10.x86_64
samba3x-doc-3.6.6-0.139.el5_10.x86_64
samba3x-client-3.6.6-0.139.el5_10.x86_64
samba3x-3.6.6-0.139.el5_10.x86_64
samba3x-winbind-3.6.6-0.139.el5_10.x86_64
samba3x-common-3.6.6-0.139.el5_10.x86_64
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

TomE
Posts: 20
Joined: 2011/09/19 22:09:35

Re: Mounting Win7 share fails

Post by TomE » 2014/05/21 17:42:43

After installing the 3x samba packages, it still wasn't working, same authentication issue. I did resolve the issue however, apparently the vendor for the win7 machines made a user called "Owner", and even though I renamed that user via the user accounts app in the control panel, I was not able to authenticate from the linux box until I changed the credentials to Owner:passwd. Lesson learned, I'll install windows myself from now on.

Post Reply