Skip to main content

Join two accounts: keep emails passwords

Comments

3 comments

  • quietFinn

    I think the passwords are in
    /home/CPANELUSERNAME/etc/DOMAIN.TLD/shadow

    another file you probably need is
    /home/CPANELUSERNAME/etc/DOMAIN.TLD/passwd

     

    0
  • Rogerio Vitiello

    Yes, thanks, that's a start.

    The "shadow" file, each user is in the format:

    <user>:<cripto-password>:<number?>::::::

    What is this "number"?

    The "passwd" seems to be related to ssh/terminal, which we don't use:

    <user>:x:<userid>:<groupid>::<user mail path>:<account root path>

    But, I have no way to test...

    Does anyone know if just copying these lines is enough to recreate the email accounts directly, without using whmapi/cpanel?

    0
  • Rogerio Vitiello

    Yeah, I forgot to ask to ChatGPT...

    0

Please sign in to leave a comment.