How to Recover Your DNN Host Password through FTP Access

How to Recover Your DNN Host Password through FTP Access
NOTE: In DNN 7.1.0, DNN began using HASHED passwords, which are not retrievable by any means. You will need to reset the password for the user. customers may contact support to have this done for you.
By default, DNN has two administrator accounts upon installation: the host (superuser) account and the admin account. The host account is used to make modules and skins available to the DNN installation, create other websites often referred to as portals, and maintain the DNN instance as a whole. The admin account is responsible for the website itself. Its duties include creating pages, installing modules made available by the host account, adding content to the website, adding users, website maintenance, etc.
By default, the host password is dnnhost and the admin password is dnnadmin. Once changed, you have a few options for recovering them. 
  • Use the forgot password system if DNN is properly configured to send through your mail server.
  • Contact your hosting provider for assistance.
  • Use the steps below to recover your DNN host password via FTP.
  1. Open Notepad and create a new text file called RecoverPassword.aspx.
  2. Copy the following code and paste it into notepad
    <%@ Page Language="C#" %>
    <script runat="server">
        void Page_Load(object sender, System.EventArgs e)
            DotNetNuke.Entities.Users.UserInfo uInfo =
    DotNetNuke.Entities.Users.UserController.GetUserById(0, 1);
            if (uInfo != null)
                string password =
    DotNetNuke.Entities.Users.UserController.GetPassword(ref uInfo, String.Empty);
                Response.Write("Password: " + password);
                Response.Write("UserInfo object is null");
            <title>Recover Password</title>
  3. Use FTP to upload the file to the root of your DNN installation. See How to Use FTP.
  4. Open a browser and visit the page by typing in
  5. Copy the password and use it to login.
  6. Be sure to delete the RecoverPassword.aspx page from your DNN installation immediately so your host password is not compromised.

Add Feedback