Ability to change a users password

10 pts.
Tags:
AS/400 Permissions
AS/400 security
AS/400 user authority
AS/400 user permissions
Without making everybody *secadm to have the ability to change the user's password and reset a disabled user. We have a program to reset the user but not the password. I need some information on how to to this.

Answer Wiki

Thanks. We'll let you know when a new response is added.

Type <b>NET USER /?</b> in a CMD shell and see the syntax for the <i>password </i>option

Hi,

Afraid NET USER is not applicable for AS400.

To make a program to reset the password, you create the program as you would normally, then you run CHGPGM to change the USRPRF to *OWNER, then you use WRKOBJ to change the owner to a user which has *SECADM.

This causes the program to run under the “adopted” authority of the user with *SECADM.

Regards,

Martin Gilbert.

//////////////////////////////
Right – program adopts authority of *SECADM
add chgusrprf password(‘XXXXXXXXXX’) status(*ENABLE) expired(*YES)

this will require the user to signin with the password XXXXXXXXX and change it immediately.

Phil

=========================================================

Note that *SECADM is not sufficient without authority also granted for the user profile being changed. If I have *SECADM and want to change the password for USERX, I still need *CHANGE authority to the USERX *USRPRF object. This helps to lessen the ability to take over particular profiles.

You can grant one profile *CHANGE authority to some set of user profiles, then give the one profile *SECADM special authority. From that, the chosen profile can work with that set of profiles plus be able to create new profiles. Any new profile cannot be given access to anything that the chosen *SECADM doesn’t already have. Profiles created by *SECADM are owned by him/her until ownership is reassigned.

Tom

Discuss This Question: 1  Reply

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
  • WoodEngineer
    Have you checked out the CHGPWD commend. It is designed to let a user change their own password.
    6,725 pointsBadges:
    report

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Thanks! We'll email you when relevant content is added and updated.

Following