Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a passwd utility #20

Open
kadler opened this issue Feb 24, 2021 · 0 comments
Open

Add a passwd utility #20

kadler opened this issue Feb 24, 2021 · 0 comments
Assignees

Comments

@kadler
Copy link
Member

kadler commented Feb 24, 2021

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants