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. Managed.com 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.
- Open Notepad and create a new text file called RecoverPassword.aspx.
- Copy the following code and paste it into notepad
<%@ Page Language="C#" %>
void Page_Load(object sender, System.EventArgs e)
DotNetNuke.Entities.Users.UserInfo uInfo =
if (uInfo != null)
string password =
DotNetNuke.Entities.Users.UserController.GetPassword(ref uInfo, String.Empty);
Response.Write("Password: " + password);
Response.Write("UserInfo object is null");
- Use FTP to upload the file to the root of your DNN installation. See How to Use FTP.
- Open a browser and visit the page by typing in http://yourdomain.com/RecoverPassword.aspx.
- Copy the password and use it to login.
- Be sure to delete the RecoverPassword.aspx page from your DNN installation immediately so your host password is not compromised.
Article ID: 681, Created: May 1, 2012 at 11:42 AM, Modified: April 27, 2015 at 3:29 AM