You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Would be useful to have a password change utility, like the standard Unix passwd.
The easiest way to implement such a tool would be to use QSYCHGPW using _PGMCALL.
Helpfully, the API takes in CCSID arguments for both old and new passwords, so we can pass in 1208 (or the output of Qp2paseCCSID).
When run as root, passwd doesn't prompt for the old password. The API does support this by passing *NOPWD, for the old password, but the user would need *SECADM special authority. We could check for this with #11 then not prompt.
The text was updated successfully, but these errors were encountered:
Would be useful to have a password change utility, like the standard Unix
passwd
.The easiest way to implement such a tool would be to use QSYCHGPW using _PGMCALL.
Helpfully, the API takes in CCSID arguments for both old and new passwords, so we can pass in 1208 (or the output of Qp2paseCCSID).
When run as root,
passwd
doesn't prompt for the old password. The API does support this by passing*NOPWD
, for the old password, but the user would need*SECADM
special authority. We could check for this with #11 then not prompt.The text was updated successfully, but these errors were encountered: