how can i recover or change user password with samba tool

Zahari Zahariev zahari.zahariev at
Sat Dec 25 08:37:24 MST 2010

Hi Hesam,

There is something called "samba-tool" and you may find lots of useful 
tools bundled together to manipulate Samba4 server. In the particular 
case of Administrator password you can try from the 
"samba-master/source4/" directory or from anywhere using the binary from 
the install path (default /usr/local/samba/bin/samba-tool):

$ ./bin/samba-tool setpassword administrator

I assume you have to be physically on the same machine that Samba4 is 
running on. Using LDAP connection won't work because for "setpassword" 
you do not have server connection needed. On the other hand you have 
"changepassword" that needs server connection.


On 12/25/10 8:12 AM, hesam mohamadian wrote:
> Hi Zahari and Thanks for your reply , when you set Domain Admin 
> Password with Samba 4 Provision you set some password , my question is 
> can change this password or not ?
> for example with wbinfo tool in samba ?
> On Thu, Dec 23, 2010 at 12:49 PM, hesam mohamadian 
> <hesam.mohamadian at <mailto:hesam.mohamadian at>> wrote:
>     hello my Administration password is expired and i can log in
>     through windows can i change or active it again with samba too and
>     if i forget my adminstrator password how can i recover or set new
>     password for my administrator
>     Thanks

More information about the samba-technical mailing list