Copy shadow to password for mail_user table

Discussion in 'General' started by soho, Dec 31, 2010.

  1. soho

    soho Member

    hello all,

    I did a test here and it worked. I was wondering if anyone has tried this and had the same result.

    I installed ISPConfig I set up the client, the domain, the site and created the email accounts by typing any password.

    I accessed the ISPConfig 2.2.19 via ssh and edit and copy the shadow password hash.

    I edited the database dbispconfig (ISPConfig and pasted this hash in password field for the mail_user table and then tried to login via squirrelmail.

    Worked without problems...
    Last edited: Dec 31, 2010
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    ISPConfig uses the same hashing algorythm (crypt with md5 salt) for passwords then Linux for its shell users. So yes, you can copy the passwords from ispconfig into /etc/shadow and the other way round works as well if you e.g. want to migrate a mailuser setup based on Linux system users to a ispconfig 3 virtual user setup.
  3. soho

    soho Member

    This is great (for me), because I need to migrate a base ISPConfig 2 for ISPConfig 3 and this solution solves my problems.

    Thank you Tim.

Share This Page