Ability to change a users password
10 pts.
0
Q:
Ability to change a users password
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.
ASKED: Apr 6 2009  2:48 PM GMT
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
0
7550 pts.
0
A:
 RATE THIS ANSWER
0
Click to Vote:
  •   0
  •  0
  • AddThis Social Bookmark Button
Type NET USER /? in a CMD shell and see the syntax for the password 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
Last Answered: Nov 4 2009  3:42 AM GMT by TomLiotta   7550 pts.
Latest Contributors: Philpl1jb   24520 pts., Gilly400   23625 pts., Alessandro.panzetta   9615 pts.
0
0
Discuss This Answer:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _



_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

WoodEngineer   2280 pts.  |   Nov 4 2009  7:26PM GMT

Have you checked out the CHGPWD commend. It is designed to let a user change their own password.

 
0