title: Changing an AIX password via script?
body: <p>I am trying to change a password of a user via script. I cannot use sudo as there is a feature that requires the user to change the password again if another user changes their password.</p>
  
  <p>AIX is running on the system.</p>
  
  <p>unfortunately, chpasswd is unavailable.</p>
  
  <p>I have expected installed, but I am having trouble with that also.</p>
  
  <p>here is what I thought would work </p>
  
  <pre><code>echo "oldpassword\nnewpasswd123\nnewpasswd123" | passwd user
  </code></pre>
  
  <p>However once run the script I am prompted with <code>please enter user's old password</code> 
  shouldn't they all be echoed in? </p>
  
  <p>I am a beginner with shell scripting and this has been baffled.</p>