Link to home
Start Free TrialLog in
Avatar of klukac
klukac

asked on

NT_STATUS_LOGON_FAILURE with Samba users

I got feedback from the Linux users group on making a samba password file in /etc/samba, then adding users - that was helpful, because I had been looking for that in the Samba documentation and couldn't find it.  I'm working with Samba as packaged with the Linux RedHat 8.0
rpm-qa | grep samba shows samba 2.2.7-5.8.0 plus -client and -common, so it doesn't look like anything is missing.

Unfortunately, when I try to connect to my linux client with smbclient //hostname/username, I get NT_STATUS_LOGON_FAILURE after typing the user password

testparm shows no errors, and smbclient -L hostname shows local shares on my linux box -
when I type the root password at the prompt to see local shares, the root password is accepted.

But the user passwords are rejected. Tried rebooting, also installed webmin - assume there's a sync problem somewhere, but webmin has way more features than I'm prepared to use right now.

Also tried installing swat
I created a swat file in xinetd.d and added/enabled tcp port 901, but the server path in the swat file is not correct - I couldn't find a bin directory under samba, not sure why.

I feel a long way off from connecting to other PCs on my LAN, help out if you can :)
Avatar of jlevie
jlevie

In your /etc/samba/smb.conf file do you have:

security = user
encrypt passwords = yes
smb passwd file = /etc/samba/smbpasswd

When you created the SMB users with smbpasswd did you match the Linux user names and passwords?
One possible cause of this is that fact that you have given null passwords for the users that you are trying to use.

Try adding:

Allow null passwords

to the global section of your smb.conf

The other cause of this problem is that samba is trying to authenticate against a windows Domain Controller, and that the windows domain controller is not available. Check that your smb.conf is not trying to do this.

HTH:)
ASKER CERTIFIED SOLUTION
Avatar of pjedmond
pjedmond
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
I use webmin to configure my samba conf file. Try that http:\\www.webmin.com

Thanks
Webmin does not provide full access to all of the smb.conf information. It will not delete anything in there that you've already inserted, but the overall GUI element provides access to only certain limited funtionalities.

However, within webmin, you can edit the config file directly by going to 'Others' in Webmin an adding a custom file editor for:

/etc/samba/smb.conf

After that you can just click on this to edit the file.

The same principle applies to many of the other webmin modules - the GUI bit provides all the common requirements, not some of the advanced functionality, and the rest of the capabilities can be obtained by editing the file directly.
HEALTH WARNING  - Messing up files is fairly easy if you decide to edit them directly - Do a cut an paste of the fiel from webmin so that you have a backup....just in case:)
Avatar of klukac

ASKER

pjedmond's advice got me into the linux box from windows 2000, thanks very much
I'm still working on the bugs:
the valid users parameter on a share cuts me off from the folder -  there's no way I can log into a directory with it.  the error on windows reads: the credentials supplied conflict with an existing set of credentials
The /var/log/samba log file for my linux box reads log error: passdb/pdb_smbpasswd.c: getsmbfilepwent (344) getsmbfilepwent:
malformed password entry (no :)
Did some more checking,
smbpasswd command works the first time, when I'm adding a user which I've just added in unix, but when I try to change the password later it fails.  also couldn't change the root password for samba
So the only way I can achieve a windows connection to my linux box is to type in the root password that I'm using to administer linux, and that's not an optimal solution.
I created users with current defaults - each user is created with his own group.  I did a chmod on the home directories to 775, that didn't help, and looked at the documentation on how RedHat does user authentication.  Except for the PAM directory, it looks like Unix, but there's a lot I don't know about how it or PAM works. I'm digging thru /var/log to see what I can find

Avatar of klukac

ASKER

Comment for the record since I closed this.  I restarted the named daemon after fixing an error, and now I can log on to the linux box from windows 2000 without using root password - the user log-on gets me to the home directory.  So I'm really happy about that.  Still can't get linux to see windows - I get an error on mount and need to study its syntax to mount the share - but I'm confident that I'll get there eventually.  Thanks pjemond for all the info - getting samba to work has always been tricky in my experience.  
You may wish to investigate mount, as it can also be used for accessing shares:

 mount -t smbfs -o username=tridge,password=foobar //fjall/test /data/test


HTH:)