Operating System - Linux
1828190 Members
2055 Online
109975 Solutions
New Discussion

Password change at first login

 
Greg Ritchie
Occasional Contributor

Password change at first login

Hi

I have to create accounts for all users on the new server. How can I set a standard password for everyone initially and then force them to change it at the first login? The system is Tru64 5.1B. I have tried passwd -f but that did not seem to work.

Thanks in advance
5 REPLIES 5
Steven E. Protter
Exalted Contributor

Re: Password change at first login

There are actually True64 forums you can post to.

passwd -f username is the only way I know how to do it.

try man passwd

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

Re: Password change at first login

Hi

To force the user to change the password at login you have to use passwd -f , he will be prompted to chnage the passwd when he logs in first time.

Rgds

Gopi
Petr Simik_1
Valued Contributor

Re: Password change at first login

passwd -f is
by typing this simple script you do it for for everyone even for admin accounts

for i in `cat /etc/passwd | awk -F: '{print $1}'
do
echo $i pasword expired
passwd -f $i
done
Petr Simik_1
Valued Contributor

Re: Password change at first login

I didn't mentioned that you need it for first logon. Than only passwd -f after you create user is doing your job.
Greg Ritchie
Occasional Contributor

Re: Password change at first login

I will employ the script suggestion from within our application software.