Link to home
Start Free TrialLog in
Avatar of ee_lcpaa
ee_lcpaa

asked on

No need to change password

Hi All,

I am using Sun OS 5.1.

Now some users will prompt to change password every 90days.
Can I run a command to disable this feature. ie. all users will not prompt to change passwd every days and they can still login with the old password.

Thanks.
ASKER CERTIFIED SOLUTION
Avatar of thaanum
thaanum

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of neteducation
neteducation


>> I am using Sun OS 5.1.

Really ? That would be Solaris 2.1 which was current back in 1994. I could image you are using SunOS 5.5.1 (around 1997), not 5.1. Can you confirm this ?

If you are really using 5.1, then I'm not sure if we already had a /etc/shadow-file at that time, and therefore the passwd as proposed by thaanum may not work. In this case, only go for /etc/default/passwd.

If you are using 5.5.1 you may use the following script to do it on all users:

IFS=:
while read a b
do
passwd -x -1 $a
done </etc/passwd


(suppose you are not using NIS or NIS+)

Avatar of Tintin
Solaris 2.x has always had /etc/shadow, however my memory doesn't extend back far enough to remember if the passwd command has the -x feature.  I'm pretty sure this came in later versions of Solaris.