Updated: 15 November 2026 · Applies to: DirectAdmin on Linux (passwd tested on Debian 13)

The DirectAdmin admin account is also a Linux system user, so the quickest way to change its password is to log in to the server over SSH as root and run passwd admin. The new password works at the panel login straight away.

Change the admin password over SSH

  1. Connect to the server as root over SSH. If you are not sure how, see How to Install DirectAdmin on a VPS or Dedicated Server for the login details you need.
  2. Run the command below and type the new password twice. Nothing is shown while you type.
passwd admin

Output:

New password:
Retype new password:
passwd: password updated successfully
  1. Open the panel (usually https://your-server:2222) and sign in as admin with the new password.

The same command works for any other DirectAdmin account: replace admin with that account's username. According to DirectAdmin, this is also the fix when the admin login is refused because the password is wrong.

Change it from inside the panel

If you can still log in, you can change the password without SSH. According to DirectAdmin, the password and Two-Step Authentication settings sit on the User Profile page in current versions (older skins showed them under Change your Password on the dashboard). Menu names can differ slightly between skins and versions.

If you are locked out

  • One-time login link: as root, DirectAdmin can create a single-use login URL for the admin account. According to DirectAdmin, it is valid for 3 days by default; a shorter lifetime is safer.
da login-url --expiry=1h
  • "Your IP is blacklisted": too many failed logins block your IP. According to DirectAdmin, remove your IP from /usr/local/directadmin/data/admin/ip_blacklist, then change the password before trying again. Login attempts are recorded in the DirectAdmin logs, see DirectAdmin Locations of Logs.

The admin login is not the da_admin database user

da_admin is the MySQL or MariaDB account that DirectAdmin itself uses to manage databases. It has its own password, stored in /usr/local/directadmin/conf/mysql.conf, and passwd admin does not change it. Change it only if you have a reason to (for example after a leak), and follow DirectAdmin's MariaDB and MySQL troubleshooting guide so the stored password and the database stay in step.

Keep the admin account safe

  • Use a long, unique password that you do not use anywhere else, and keep it in a password manager.
  • Turn on Two-Step Authentication for the admin account. According to DirectAdmin, it uses a time-based code from a phone app and gives you one-time scratch codes for when the phone is not available.
  • Use the admin account for server tasks only; host websites under separate user accounts.

If you would rather have an engineer reset access or harden the panel for you, you can hire an expert by the hour.

Official documentation: DirectAdmin, troubleshooting the DA service and DirectAdmin, the directadmin binary.

Related services

Server management

on-demand administration, hardening, migrations and monitoring.

KVM VPS hosting

NVMe SSD and full root access, with Free Basic Managed Support.

Was this answer helpful?

Still stuck? Open a ticket