Hi,

I am using drupal 5.6 and forget the admin user's password, not I could not get login on the site, so how I could get its password.
When I click on the 'request new password', it requires a user name or email, after submitting that, I get an error 'Unable to send mail. Please contact the site admin', even I have set the SMTP server IP in the php.ini file.

Neither I can get login nor install new modules because it was an admin user, so how can I get the password of this user.

Any help will be appreciated by you.

CRINCH

Comments

Mindaugasu’s picture

I had similar situation. Simplest way is to generate MD5 shecksum of known password and replace old one in database where admin user is located.

crinch’s picture

thanks for your reply, would you please explain it how to do this.
get the password from database and make it MD5 precess, then put it in the database?

Thanks, waiting for your reply
CRINCH

depace’s picture

echo md5('temppassword');

run it in and copy the output and replace it in the pass field of user table where uid = 1

:-)

crinch’s picture

I have done this, thanks for your help.
CRINCH

feloescoto’s picture

jejejeje, it is good to know I am not the only one that has gone down that road before.

Geeks Socializing
http://inTribu.com