New user's registration have been closed due to high spamming and low trafic on this forum. Please contact forum admins directly if you need an account. Thanks !

User password incorrect for samba but correct for SSH

Got problems with your B2 or B3? Share and get helped!
Post Reply
scott-2
Posts: 31
Joined: 05 Oct 2008, 21:25

User password incorrect for samba but correct for SSH

Post 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?
RandomUsername
Posts: 904
Joined: 09 Oct 2009, 18:49

Re: User password incorrect for samba but correct for SSH

Post 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.
scott-2
Posts: 31
Joined: 05 Oct 2008, 21:25

Re: User password incorrect for samba but correct for SSH

Post 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.
RandomUsername
Posts: 904
Joined: 09 Oct 2009, 18:49

Re: User password incorrect for samba but correct for SSH

Post by RandomUsername »

Sounds like you don't have samba running.

Try (as root)

Code: Select all

/etc/init.d/samba start
scott-2
Posts: 31
Joined: 05 Oct 2008, 21:25

Re: User password incorrect for samba but correct for SSH

Post 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.
Post Reply