Modern instructions for resetting the Admin password?

Having trouble installing serendipity?
Post Reply
gowen
Posts: 2
Joined: Wed Aug 15, 2018 12:26 am

Modern instructions for resetting the Admin password?

Post by gowen »

Are there modern instructions for resetting the Admin password? The various versions found searching this forum and elsewhere seem to be 2005-2009 and refer to the older md5 format. I have full shell and PostgreSQL access, but cannot determine how to set the password in such a way as to allow me to log in.

Any help appreciated.

Thanks,
gowen
gowen
Posts: 2
Joined: Wed Aug 15, 2018 12:26 am

Re: Modern instructions for resetting the Admin password?

Post by gowen »

For the record, newer versions of s9y are storing a pepper in the serendipity.${prefix}config table under the name 'hashkey'. The pepper takes the form of a Unix epoch timestamp, so, a 10 digit number.

Concatenate that number and the intended password together, without a newline, and take the SHA1 hash, then store that hash as 'password' in the appropriate username's row in the ${prefix}authors table.

Code: Select all

$ date '+%s'
1534369066
$ echo -n '1534369066p@ssw0rd' | sha1sum 
54db282b2b4e0d9e3bc0b92e61586c73ccaa72c9  -
$ 
Post Reply