LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 06-12-2007, 11:40 PM   #1
amocjr
Member
 
Registered: Aug 2003
Location: Connecticut
Distribution: Mandrake, Debian
Posts: 39

Rep: Reputation: 15
smbpasswd - failed to change password for <user>


I am trying to set up Samba on a recently installed Debian platform (current stable release, everything apt-get upgraded recently) and am having a host (no pun intended) of problems.

The immediate problem is that I am unable to establish a Samba user password on the local machine, which means I can't mount any samba shares on this machine to any other machine, since it won't authenticate the user without a password, which I can't set. (I'm using security = user in smb.conf).

Smbpasswd executes, prompts for the old and new passwords, etc., but then fails with the following error message:

Quote:
Could not connect to machine 127.0.0.1: NT_STATUS_LOGON_FAILURE
Failed to change password for <username>

The <username> is a valid Linux account on the machine -- I can log onto a Linux session with it no problem.
The localhost is properly identified in the hosts file.
Iptables is wide open, so the firewall isn't blocking access to the local machine.

I successfully set up Samba on a Debian machine about six months ago and had no problems whatsoever, so I am a bit stumped.

Thanks.
 
Old 06-13-2007, 04:12 AM   #2
this213
Member
 
Registered: Dec 2001
Location: ./
Distribution: Fedora, CentOS, RHEL, Gentoo
Posts: 167

Rep: Reputation: 34
Sounds to me like you missed something like:
Code:
# smbpassword -am client_machine_name
 
Old 06-16-2007, 06:27 PM   #3
amocjr
Member
 
Registered: Aug 2003
Location: Connecticut
Distribution: Mandrake, Debian
Posts: 39

Original Poster
Rep: Reputation: 15
Lightbulb Problem Solved

Ah, no. Turns out I forgot to add the user name as a Samba user. Found the answer on page 38 of the Debian Reference. RTFM, you know.

Code:
smbpasswd -a <username>
I had thought Samba picked up the Linux accounts on the machine. I had forgotten that you have to explicitly add them to Samba.

Thanks.
 
1 members found this post helpful.
Old 12-01-2009, 03:51 PM   #4
djhaskin987
LQ Newbie
 
Registered: Dec 2005
Location: Chicagoland, IL
Distribution: Fedora Core 11, Debian 5
Posts: 13

Rep: Reputation: 0
Question

at work, we get the same error described above:
Code:
$ smbpasswd
/* I type in the old and new password */
Could not connect to machine 127.0.0.1: NT_STATUS_LOGON_FAILURE
as well as the following error if I use an alternate command:
Code:
$ passwd
passwd: User not known to the underlying authentication module
passwd: password unchanged
I've been looking at other forums which say these mean the user doesn't exist, but I am attempting to change the password of the user which is currently logged in. we need to know why.
thanks!
 
Old 12-28-2009, 03:11 AM   #5
alecz20
LQ Newbie
 
Registered: May 2009
Posts: 9

Rep: Reputation: 0
Quote:
Originally Posted by amocjr View Post
Ah, no. Turns out I forgot to add the user name as a Samba user. Found the answer on page 38 of the Debian Reference. RTFM, you know.

Code:
smbpasswd -a <username>
I had thought Samba picked up the Linux accounts on the machine. I had forgotten that you have to explicitly add them to Samba.

Thanks.
This works because you are re-adding the user using the super-user account.

But users would not be able to do this on their own. I still don't know how users can change their own samba password.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Change password with the command smbpasswd ricardogorayeb Linux - General 0 10-05-2006 07:38 AM
Help! Cannot Add a User to User Manager or Change Root Password lennysokol Linux - General 2 06-25-2005 09:59 AM
what is the command to make a user change their password after creating a new user? naweenio Linux - Newbie 7 01-05-2005 07:07 AM
Unable to change existing smbpasswd on user; pam problem?? Geronimo Debian 1 10-13-2004 05:35 PM
root and user password failed sarah_777 Linux - General 1 04-29-2002 10:46 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 09:38 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration