title: echo smbpasswd by --stdin doesn't work
body: <p>I want to make creating a samba password automated but this command doesn't work:</p>
  
  <pre><code>echo "passwd"|smbpasswd -a -s $user
  </code></pre>
  
  <p>It shows this error:</p>
  
  <blockquote>
    <p>Mismatch - password unchanged.
    Unable to get new password.</p>
  </blockquote>
  
  <p>Could you please suggest any option to make my script automated?</p>