3 Replies Latest reply on Sep 26, 2012 11:49 AM by Ani

    command #user can change there own password (inside script..without passwd)

      I have prepared one script, from which user can change there own password across all the nodes he wants.But problem is script is not working because the following command is not working
      echo -e "$oldPassword\n$newPassword" | passwd

      i have tried to run it manually but it is showing the folowing error....

      [testuser@xxxxxx01 ~]$ echo -e test\ntest123|passwd
      Changing password for user testuser.
      Changing password for testuser
      (current) UNIX password: passwd: Authentication token manipulation error
      [testuser@xxxxxxx01 ~]$

      any idea how to resolve this , or is there any other command where user can change their own password (inside a script).