Page 1 of 1

User password incorrect for samba but correct for SSH

Posted: 23 Feb 2010, 18:47
by scott-2
Hi gang,

It's a strange problem with my primary bubba user. I want to access my home directory from my WinXP PC.

Code: Select all

>net use Z: \\bubba\home ******** /user:excito\scott
Response:

Code: Select all

System error 86 has occurred.
The specified network password is not correct.
However I can open a SSH session (client is PuTTY on my WinXP PC) using this user and same password.

Also, I have a secondary user, sally. Using this user name and password, I can successfully access sally's home directory:

Code: Select all

>net use Z: \\bubba\home ******** /user:excito\sally
Response:

Code: Select all

The command completed successfully.
This confirms that the problem is in user 'scott' and not in my PC or network. Can you help?

Re: User password incorrect for samba but correct for SSH

Posted: 24 Feb 2010, 10:32
by RandomUsername
When you run the net use command do you get prompted for a password or is it pulling the password from the account you're logged in with? If the latter, is the password for that local account the same as the account on Bubba?

Try SSHing into the Bubba and running

Code: Select all

smbpasswd
to set your password for the samba share.

Re: User password incorrect for samba but correct for SSH

Posted: 24 Feb 2010, 13:43
by scott-2
I'm running the net use command with the password on the command line (represented by stars, see above). The user name of my bubba account is not the same name as my WinXP account.

I tried smbpasswd and got this:

Code: Select all

scott@bubba:~$ smbpasswd
Old SMB password:
New SMB password:
Retype new SMB password:
Error connecting to 127.0.0.1 (Connection refused)
unable to connect to SMB server on machine 127.0.0.1. Error was : SUCCESS - 0.
Failed to change password for scott
I haven't had time to look into it further.

Re: User password incorrect for samba but correct for SSH

Posted: 25 Feb 2010, 20:12
by RandomUsername
Sounds like you don't have samba running.

Try (as root)

Code: Select all

/etc/init.d/samba start

Re: User password incorrect for samba but correct for SSH

Posted: 25 Feb 2010, 21:48
by scott-2
No, actually I was able to change my password by running smbpasswd as root (sudo). It seems to be cooperating with me now.

Thanks for your help.