Operating System - HP-UX
1830892 Members
2824 Online
110017 Solutions
New Discussion

How to force users to change initial password?

 
SOLVED
Go to solution
John Landkrohn
New Member

How to force users to change initial password?

In HP-Ux Trusted System, is there a way to set password controls so that a user will be required to change their password the first time they log in and anytime the sys admin must assign them a new password?

7 REPLIES 7
Paul Sperry
Honored Contributor
Solution

Re: How to force users to change initial password?

passwd -f username

Force user to change password upon next login by expiring the current password.
Jean-Louis Phelix
Honored Contributor

Re: How to force users to change initial password?

Hi,

Or you can use sam or even 'modprpw -e'

Regards.
It works for me (© Bill McNAMARA ...)
twang
Honored Contributor

Re: How to force users to change initial password?

you can change user's password after user creation using the following command to force user to change password upon first login by expiring the current password:
# passwd -f

Steven E. Protter
Exalted Contributor

Re: How to force users to change initial password?

After you set up the user

passwd -f

We have built this into our program that executes the useradd command.

If your system is trusted, you can additionally disable the user id if it is not used in a certain number of business days.


see
passwd -x max

passwd -n min
to set the minumum number of days before a password can be changed again.

passwd -w warn
number of days warning before a password change will be forced.


Probably more than you wanted.

SEP

Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
PIYUSH D. PATEL
Honored Contributor

Re: How to force users to change initial password?

Hi,

You can use
#passwd -f username

or you can also use the following :

Make a backup of /etc/passwd file. Edit the
passwd file and add ,.. in the passwd entry
of the users which require passwd change.

This will force the users to change the passwd
next time.

HTH,
Piyush


Caesar_3
Esteemed Contributor

Re: How to force users to change initial password?

Hello!

Use passwd -f
And it's will work.

Caesar
Jerome Henry
Honored Contributor

Re: How to force users to change initial password?

Hi !

Do you know the 'chage' command ? I thinkit should be available on hp ux.

http://www.rt.com/man/chage.1.html

J
You can lean only on what resists you...