{"id":601,"date":"2024-07-18T13:24:28","date_gmt":"2024-07-18T13:24:28","guid":{"rendered":"https:\/\/joomlawebhosting.in\/tutorial\/?p=601"},"modified":"2024-07-18T13:24:30","modified_gmt":"2024-07-18T13:24:30","slug":"change-password-directadmin-and-ssh","status":"publish","type":"post","link":"https:\/\/joomlawebhosting.in\/tutorial\/change-password-directadmin-and-ssh\/","title":{"rendered":"How To Change The Account Password In DirectAdmin And SSH"},"content":{"rendered":"\n<p>In\u00a0<a href=\"https:\/\/www.squarebrothers.com\/wordpress-hosting-india\/\" target=\"_blank\" rel=\"noopener\">DirectAdmin control panel<\/a>\u00a0you can change the present configured password at any time. In this article, we will cover the step-by-step guide on How to change the account password in DirectAdmin?<\/p>\n\n\n\n<div class=\"wp-block-rank-math-toc-block\" id=\"rank-math-toc\"><h2>Table of Contents<\/h2><nav><ul><li><a href=\"#change-password-using-gui\">Change Password Using GUI<\/a><\/li><li><a href=\"#access-your-server-via-ssh\">Access Your Server via SSH<\/a><ul><li><a href=\"#step-2-retrieve-the-current-admin-password\">Step 2: Retrieve the Current Admin Password<\/a><\/li><li><a href=\"#step-3-reset-directadmin-password-from-ssh\">Step 3: Reset directadmin password from SSH<\/a><\/li><li><a href=\"#step-4-update-direct-admin-configuration\">Step 4: Update DirectAdmin Configuration<\/a><\/li><li><a href=\"#step-5-restart-direct-admin\">Step 5: Restart DirectAdmin<\/a><\/li><\/ul><\/li><li><a href=\"#alternative-method-using-direct-admin-commands\">Alternative Method: Using DirectAdmin Commands<\/a><\/li><\/ul><\/nav><\/div>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"change-password-using-gui\">Change Password Using GUI<\/h2>\n\n\n\n<p>1. First, to login into DirectAdmin control panel visit,<\/p>\n\n\n\n<p><strong>https:\/\/your-domain.com:2<\/strong>087 or&nbsp;<strong>https:\/\/IP-address:2<\/strong>087or&nbsp;<strong>https:\/\/server-hostname:2<\/strong>087.<\/p>\n\n\n\n<p>2.&nbsp;<strong>Top right-click \u2192 Click on Username \u2192 Click&nbsp;<\/strong>on&nbsp;<strong>Password<\/strong>.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"219\" height=\"260\" src=\"https:\/\/joomlawebhosting.in\/tutorial\/wp-content\/uploads\/2024\/07\/image.png\" alt=\"\" class=\"wp-image-618\"\/><\/figure>\n\n\n\n<p>3. Enter the required information,<\/p>\n\n\n\n<p><strong>Current DirectAdmin Password:<\/strong>&nbsp;Enter the current password of DirectAdmin control panel.<\/p>\n\n\n\n<p><strong>Enter new password:&nbsp;<\/strong>Enter the complex and hard to guess password.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"909\" height=\"399\" src=\"https:\/\/joomlawebhosting.in\/tutorial\/wp-content\/uploads\/2024\/07\/save_email_pass.jpg\" alt=\"\" class=\"wp-image-620\" srcset=\"https:\/\/joomlawebhosting.in\/tutorial\/wp-content\/uploads\/2024\/07\/save_email_pass.jpg 909w, https:\/\/joomlawebhosting.in\/tutorial\/wp-content\/uploads\/2024\/07\/save_email_pass-300x132.jpg 300w, https:\/\/joomlawebhosting.in\/tutorial\/wp-content\/uploads\/2024\/07\/save_email_pass-768x337.jpg 768w\" sizes=\"auto, (max-width: 909px) 100vw, 909px\" \/><\/figure>\n\n\n\n<p>4. Finally, click on&nbsp;<strong>Save<\/strong>.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"access-your-server-via-ssh\">Access Your Server via SSH<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Open your terminal or SSH client.<\/li>\n<\/ul>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Connect to your <a href=\"https:\/\/joomlawebhosting.in\/\">server<\/a> using the root user. For example:<\/li>\n<\/ul>\n\n\n\n<pre class=\"wp-block-code\"><code>ssh root@your_server_ip<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"step-2-retrieve-the-current-admin-password\">Step 2: Retrieve the Current Admin Password<\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Once you are logged in, you can retrieve the current DirectAdmin admin password by running the following command:<\/li>\n<\/ul>\n\n\n\n<pre class=\"wp-block-code\"><code>cat \/usr\/local\/directadmin\/scripts\/setup.txt | grep adminpass<\/code><\/pre>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"905\" height=\"104\" src=\"https:\/\/joomlawebhosting.in\/tutorial\/wp-content\/uploads\/2024\/07\/image-4.png\" alt=\"\" class=\"wp-image-623\" srcset=\"https:\/\/joomlawebhosting.in\/tutorial\/wp-content\/uploads\/2024\/07\/image-4.png 905w, https:\/\/joomlawebhosting.in\/tutorial\/wp-content\/uploads\/2024\/07\/image-4-300x34.png 300w, https:\/\/joomlawebhosting.in\/tutorial\/wp-content\/uploads\/2024\/07\/image-4-768x88.png 768w\" sizes=\"auto, (max-width: 905px) 100vw, 905px\" \/><\/figure>\n\n\n\n<ul class=\"wp-block-list\">\n<li>This command will display a line similar to:<\/li>\n<\/ul>\n\n\n\n<pre class=\"wp-block-code\"><code>adminpass=your_current_password<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"step-3-reset-directadmin-password-from-ssh\">Step 3: Reset directadmin password from SSH<\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li>To reset the admin password, use the following command:<\/li>\n<\/ul>\n\n\n\n<pre class=\"wp-block-code\"><code>passwd admin<\/code><\/pre>\n\n\n\n<ul class=\"wp-block-list\">\n<li>You will be prompted to enter the new password and confirm it.<\/li>\n<\/ul>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"963\" height=\"163\" src=\"https:\/\/joomlawebhosting.in\/tutorial\/wp-content\/uploads\/2024\/07\/image-5.png\" alt=\"\" class=\"wp-image-624\" srcset=\"https:\/\/joomlawebhosting.in\/tutorial\/wp-content\/uploads\/2024\/07\/image-5.png 963w, https:\/\/joomlawebhosting.in\/tutorial\/wp-content\/uploads\/2024\/07\/image-5-300x51.png 300w, https:\/\/joomlawebhosting.in\/tutorial\/wp-content\/uploads\/2024\/07\/image-5-768x130.png 768w\" sizes=\"auto, (max-width: 963px) 100vw, 963px\" \/><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"step-4-update-direct-admin-configuration\">Step 4: Update DirectAdmin Configuration<\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li>After resetting the admin password, you need to update the DirectAdmin configuration with the new password. Run the following command<\/li>\n<\/ul>\n\n\n\n<pre class=\"wp-block-code\"><code>echo \"adminpass=new_password\" >> \/usr\/local\/directadmin\/scripts\/setup.txt<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"step-5-restart-direct-admin\">Step 5: Restart DirectAdmin<\/h3>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Finally, restart DirectAdmin to ensure the changes take effect:<\/li>\n<\/ol>\n\n\n\n<pre class=\"wp-block-code\"><code>service directadmin restart<\/code><\/pre>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"913\" height=\"198\" src=\"https:\/\/joomlawebhosting.in\/tutorial\/wp-content\/uploads\/2024\/07\/image-6.png\" alt=\"\" class=\"wp-image-625\" srcset=\"https:\/\/joomlawebhosting.in\/tutorial\/wp-content\/uploads\/2024\/07\/image-6.png 913w, https:\/\/joomlawebhosting.in\/tutorial\/wp-content\/uploads\/2024\/07\/image-6-300x65.png 300w, https:\/\/joomlawebhosting.in\/tutorial\/wp-content\/uploads\/2024\/07\/image-6-768x167.png 768w\" sizes=\"auto, (max-width: 913px) 100vw, 913px\" \/><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"alternative-method-using-direct-admin-commands\">Alternative Method: Using DirectAdmin Commands<\/h2>\n\n\n\n<ol class=\"wp-block-list\">\n<li>You can also use DirectAdmin\u2019s internal command to reset the admin password. Run the following:<\/li>\n<\/ol>\n\n\n\n<pre class=\"wp-block-code\"><code>\/usr\/local\/directadmin\/directadmin set admin_pass new_password<\/code><\/pre>\n\n\n\n<ol start=\"2\" class=\"wp-block-list\">\n<li>Restart DirectAdmin:<\/li>\n<\/ol>\n\n\n\n<pre class=\"wp-block-preformatted\">service directadmin restart<\/pre>\n\n\n\n<p>Make sure to replace&nbsp;<code>new_password<\/code>&nbsp;with the actual password you want to set.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>In\u00a0DirectAdmin control panel\u00a0you can change the present configured password at any time. In this article, we will cover the step-by-step guide on How to change the account password in DirectAdmin? Change Password Using GUI 1. First, to login into DirectAdmin control panel visit, https:\/\/your-domain.com:2087 or&nbsp;https:\/\/IP-address:2087or&nbsp;https:\/\/server-hostname:2087. 2.&nbsp;Top right-click \u2192 Click on Username \u2192 Click&nbsp;on&nbsp;Password. 3. Enter [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":617,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[39,40],"tags":[],"class_list":["post-601","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-information","category-directadmin"],"_links":{"self":[{"href":"https:\/\/joomlawebhosting.in\/tutorial\/wp-json\/wp\/v2\/posts\/601","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/joomlawebhosting.in\/tutorial\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/joomlawebhosting.in\/tutorial\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/joomlawebhosting.in\/tutorial\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/joomlawebhosting.in\/tutorial\/wp-json\/wp\/v2\/comments?post=601"}],"version-history":[{"count":11,"href":"https:\/\/joomlawebhosting.in\/tutorial\/wp-json\/wp\/v2\/posts\/601\/revisions"}],"predecessor-version":[{"id":626,"href":"https:\/\/joomlawebhosting.in\/tutorial\/wp-json\/wp\/v2\/posts\/601\/revisions\/626"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/joomlawebhosting.in\/tutorial\/wp-json\/wp\/v2\/media\/617"}],"wp:attachment":[{"href":"https:\/\/joomlawebhosting.in\/tutorial\/wp-json\/wp\/v2\/media?parent=601"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/joomlawebhosting.in\/tutorial\/wp-json\/wp\/v2\/categories?post=601"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/joomlawebhosting.in\/tutorial\/wp-json\/wp\/v2\/tags?post=601"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}