Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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!
machine 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.

share|improve this question
up vote 1 down vote accepted

It would help if potential viewers of this request knew:

Which version of samba are you using?
What command did you give it that generated this error message?
Is there more than one machine involved?

You might initially at least need to execute smbpasswd as root, but I usually do this as follows:

$ sudo sh

(switch to superuser shell)

# smbpasswd -a username_one

(smbpasswd will prompt for password for user one)

# smbpasswd -a username_two

(smbpasswd will prompt for password for user two)

# exit

(superuser shell exits)

Once the smbpassword file is set up and populated then you can let regular users change their password

$ smbpasswd

(smbpassword prompts for old password, then new password)

share|improve this answer
The question has been updated to address these issues. – Phenom Aug 15 '10 at 15:45

Try executing as root:

$ sudo smbpasswd

If that doesn't work, please post the contents of /etc/samba/smb.conf

share|improve this answer

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .