Migrate email password from a DB

reficul

Member
Dec 15, 2008
19
0
51
Italy
cPanel Access Level
Root Administrator
Hello, I made a script to migrate hundreds of emails from a server without cpanels. Everything works perfectly but I have some problem to migrate psw from the old server. Passwords are stored in a DB with this format:

{PLAIN-MD5}d288d36da48c345f31cdff90fd141bb2

I thought it would be enough to import this psw into the shadow file with the format:

$1$d288d36da48c345f31cdff90fd141bb2

Any advice? Is it possible?
 

cPanelLauren

Product Owner
Staff member
Nov 14, 2017
13,297
1,251
313
Houston
There is no way that I am aware of to transfer that information from a non-cPanel server. Furthermore passwords are not stored using an MD5 hash which would represent a $1$ not a $6$ which is SHA-512 which is what is reflected in a cPanel /home/user/etc/domain.tld/shadow file.

It's also not just the hash that's present there.
 
  • Like
Reactions: reficul