Operating System - HP-UX
1834155 Members
2427 Online
110064 Solutions
New Discussion

Re: Command to require users to enter new password

 
Ngoh Chean Siung
Super Advisor

Command to require users to enter new password

Hi,

My HP-UX server is a trusted system (tcb). I hv a list of 80+ new users. After creating their users account, is there any command to let users to key in their own new password after entering their user id in login?

My normal practise is to delete the 2nd line (pwd.....) at /tcb/files/auth/..

Any way to speed up this process?

regards
5 REPLIES 5
Robert-Jan Goossens
Honored Contributor

Re: Command to require users to enter new password

Hi,

# passwd -f user

Force user to change password upon next login by expiring the current password.

Robert-Jan
Peter Godron
Honored Contributor

Re: Command to require users to enter new password

Hi,
have you tried:
modprpw -e usr_account
where usr_account is the user account name
Ngoh Chean Siung
Super Advisor

Re: Command to require users to enter new password

Hi,

Actually the thing that I want is after user enter their user id at login prompt and press enter, the new password will be prompt as shown below.

login: ncs
Last successful login for ncs: Thu Mar 9 08:50:46 MAL-8 2006 on pts/tm
Last unsuccessful login for ncs: Fri Mar 10 16:40:40 MAL-8 2006 on pts/ty
You don't have a password.
Choose a new password.
Changing password for ncs
Last successful password change for ncs: NEVER
Last unsuccessful password change for ncs: Fri Mar 10 16:40:09 2006

New password:

Any ideas?

regards.
Senthil Kumar .A_1
Honored Contributor

Re: Command to require users to enter new password

Hi Ngoh,

I'm not too sure whether the trusted system would allow you to have a blank password for a user at anytime. But the option "-x" to modprpw command remotely.. resembles your requirement.

modprpw -x username

QUOTE (from man page):

-x Delete the user's password and return a random password that the
user must later supply to the login process to login and pick a
new password. Not valid for root. Also resets locks.

END QUOTE.

Regards,
Senthil Kumar .A
Let your effort be such, the very words to define it, by a layman - would sound like a "POETRY" ;)
Ngoh Chean Siung
Super Advisor

Re: Command to require users to enter new password

Hi,

Still can't.

regards.