Operating System - HP-UX
1836583 Members
1377 Online
110102 Solutions
New Discussion

Re: force users to change their pwd

 
Cem Tugrul
Esteemed Contributor

force users to change their pwd

Hello forum,
i have approx 160 users om my ux server.
and they use a client application on PC's
name BaaN erp software so while using this software there is a username&passwd screen
welcome them.On ux side we do not use any pwd
aging so this means they always use same
pwd when their account created at once...
Now at first;i want to reset their pwds and
force them to change every month
Secondly;how can i organize on their PC's side
like a batch file runs like a telnet menu

login:
passwd:
newpasswd:

or is there any free tool which is running from PC's and give any user to change his/her
UX account pwd?

Best Regards,

Our greatest duty in this life is to help others. And please, if you can't
5 REPLIES 5
Steven E. Protter
Exalted Contributor

Re: force users to change their pwd

passwd -f

as root.

to do it on a mass basis, see the utility script I'm attaching. It will let you read a copy of /etc/passwd, which can server as a list of the 160 users you want to be forced to change their password.

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
RAC_1
Honored Contributor

Re: force users to change their pwd

You can force them to change it as follows.

passwd -f "user_name"
You can then, set a cron job which will run every month to do thie.
If your system is in trusted mode, you can set exptm parameter for it.

for you requirement, you may need to look at expect tool. (check if there is expect toll available for Window$)

Anil
There is no substitute to HARDWORK
Sridhar Bhaskarla
Honored Contributor

Re: force users to change their pwd

Hi,

As already mentioned, convert the system to trusted and then set the 'password expiry' too 30 days. Even without trusted systems, you can do it with -x option. However, you will have to do it for each user.

I don't believe there is any free tool. There are commercial softwares like control-sa etc., available. You can create a small website for yourself.

-Sri
You may be disappointed if you fail, but you are doomed if you don't try
Rick Garland
Honored Contributor

Re: force users to change their pwd

Assuming non-trusted systems.

In the passwd file you can put the characters <,..> at the end of the passwd field for each user account. This is what the passwd -f command is doing.

Using awk to get the 2nd record of the passwd file and then using sed to insert the ,.. at the end of this record will achieve the desired results.
Cem Tugrul
Esteemed Contributor

Re: force users to change their pwd

found solution from another discussion forum
Our greatest duty in this life is to help others. And please, if you can't