How does one change a passwd with Samba

James Kreuziger jkreuzig at
Wed Aug 16 16:52:41 GMT 2000

Well, you could try using the "Passwords" Control Panel, 
and try clicking on the "Change Windows Password" button.  
I say try because I've tried using this feature on my 
Win95/98 boxes here with no success.  All it does is 
muck things up enough that I have to do the following.  

1) Wipe out the affected user entry from the smbpassword 

2) Restart smbd.

3) Add the user to the smbpassword file.

4) Have the user change their password using smbpasswd.

This is a problem that I (and others) have mentioned 
in the past.  It has occured on both of my setups 
(2.0.6 and 2.0.7 on Solaris 2.6), and I have never 
been able to figure out why it doesn't work.  I'm lucky 
in that most of my users are unix savy, so training 
to use a command line is not a problem.


Jim Kreuziger
jkreuzig at

On Wed, 16 Aug 2000, Medi Montaseri wrote:

> How does a Window's user change thier password on a Unix based 
> Samba server. I know they can login to the unix box and use smbpasswd(8).
> But these users are MS Windows users and I hate to have to explain what
> a command prompt looks like.
> Unfortunately I don't know enough Windows. Is there such a client
> feature built into the Windows, how do they do it against a PDC?
> If no solution is available, can someone modify smbpasswd(8) to
> operate in a non-interactive mode, so that I can call it from a
> programming environment for a CGI application.
> Or can someone point out a library that I can use. I might write
> a Perl package around it.
> This is too basic, I'm sure someone has solve this....
> -------------------------------------------------------------------------
> Medi Montaseri                               medi at
> Unix Distributed Systems Engineer            HTTP://
> CyberShell Engineering
> -------------------------------------------------------------------------

More information about the samba mailing list