Wednesday, September 19, 2007

ColdFusion password reset

Can't enter your ColdFusion administrator anymore, because your brain has a blank where the CF administrator password should be? Try this:

Log into your server with ssh as 'root'

Edit the file /opt/coldfusionmx7/lib/password.properties with your favorite text editor, something like this should work:

vi /opt/coldfusionmx7/lib/password.properties

The contents of this file look something like this:

#Wed Mar 30 14:44:26 PST 2005
rdspassword='(5_K42"O"
npassword='#<,(F-# Q
nencrypted=true

Put your new password after the = signs in the rdspassword= and password= lines, erasing everything after.

Change the encrypted=true line to encrypted=false and save this file A fully modified file might look like this:

#Wed Mar 30 14:44:26 PST 2005
rdspassword=my_new_password
password=my_new_password
encrypted=false

Restart coldfusionmx like this:

/etc/init.d/coldfusionmx restart

this may take up to a few minutes.

No comments: