When I try to run smbpasswd this is what I get:
cli_pipe_validate_current_pdu: RPC fault code DCERPC_FAULT_OP_RNG_ERROR received from host 127.0.0.1! machine 127.0.0.1 rejected the password change: Error was : NT code 0x1c010002.
I'm using samba4. To use smbpasswd I just typed "smbpasswd" and pressed enter. There are no other machines involved. I have virtual machines in my system which I am trying to get to accesss files on this computer, but I don't think that counts.