smbpasswd for samba4

Volker Lendecke Volker.Lendecke at SerNet.DE
Mon Dec 29 11:04:42 GMT 2008

On Sun, Dec 28, 2008 at 10:24:15PM +0100, Johannes wrote:
> i started modifing the provision python script in order to get some
> information how this can work.
> i can already change the passwort(s) working root privileges.
> but of course when i run it as an different user i get:
> ltdb: tdb((null)): tdb_open_ex: could not open file
> /usr/local/samba/private/sam.ldb: Permission denied
> Unable to open tdb '/usr/local/samba/private/sam.ldb'
> Failed to connect to '/usr/local/samba/private/sam.ldb'
> any suggestions how to change the passwort without su-rights?
> (for a smbpasswd python script?)

You will only be able to change a password as non-root with
RPC methods, like the smbpasswd3 utility does with the -r
option. This requires a running smbd.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url :

More information about the samba-technical mailing list