{"id":2031,"date":"2024-08-22T02:24:26","date_gmt":"2024-08-21T20:54:26","guid":{"rendered":"https:\/\/chennaiwebhosting.in\/blog\/?p=2031"},"modified":"2024-08-22T02:31:48","modified_gmt":"2024-08-21T21:01:48","slug":"how-to-change-password-directadmin-ssh","status":"publish","type":"post","link":"https:\/\/chennaiwebhosting.in\/blog\/how-to-change-password-directadmin-ssh\/","title":{"rendered":"How to change the account password in DirectAdmin and SSH"},"content":{"rendered":"<p>In <a href=\"https:\/\/chennaiwebhosting.in\" target=\"_blank\" rel=\"nofollow noopener\" data-type=\"link\" data-id=\"https:\/\/www.vpsjungle.in\">DirectAdmin control panel<\/a> you can change the present configured password at anytime. In this article, we will cover the step-by-step guide on How to change the account password in DirectAdmin?<\/p>\n<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_80 counter-hierarchy ez-toc-counter ez-toc-grey ez-toc-container-direction\">\n<div class=\"ez-toc-title-container\">\n<p class=\"ez-toc-title\" style=\"cursor:inherit\">Table of Contents<\/p>\n<span class=\"ez-toc-title-toggle\"><a href=\"#\" class=\"ez-toc-pull-right ez-toc-btn ez-toc-btn-xs ez-toc-btn-default ez-toc-toggle\" aria-label=\"Toggle Table of Content\"><span class=\"ez-toc-js-icon-con\"><span class=\"\"><span class=\"eztoc-hide\" style=\"display:none;\">Toggle<\/span><span class=\"ez-toc-icon-toggle-span\"><svg style=\"fill: #999;color:#999\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" class=\"list-377408\" width=\"20px\" height=\"20px\" viewBox=\"0 0 24 24\" fill=\"none\"><path d=\"M6 6H4v2h2V6zm14 0H8v2h12V6zM4 11h2v2H4v-2zm16 0H8v2h12v-2zM4 16h2v2H4v-2zm16 0H8v2h12v-2z\" fill=\"currentColor\"><\/path><\/svg><svg style=\"fill: #999;color:#999\" class=\"arrow-unsorted-368013\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"10px\" height=\"10px\" viewBox=\"0 0 24 24\" version=\"1.2\" baseProfile=\"tiny\"><path d=\"M18.2 9.3l-6.2-6.3-6.2 6.3c-.2.2-.3.4-.3.7s.1.5.3.7c.2.2.4.3.7.3h11c.3 0 .5-.1.7-.3.2-.2.3-.5.3-.7s-.1-.5-.3-.7zM5.8 14.7l6.2 6.3 6.2-6.3c.2-.2.3-.5.3-.7s-.1-.5-.3-.7c-.2-.2-.4-.3-.7-.3h-11c-.3 0-.5.1-.7.3-.2.2-.3.5-.3.7s.1.5.3.7z\"\/><\/svg><\/span><\/span><\/span><\/a><\/span><\/div>\n<nav><ul class='ez-toc-list ez-toc-list-level-1 ' ><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/chennaiwebhosting.in\/blog\/how-to-change-password-directadmin-ssh\/#Change_Password_Using_GUI\" >Change Password Using GUI<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/chennaiwebhosting.in\/blog\/how-to-change-password-directadmin-ssh\/#Access_Your_Server_via_SSH\" >Access Your Server via SSH<\/a><ul class='ez-toc-list-level-3' ><li class='ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-3\" href=\"https:\/\/chennaiwebhosting.in\/blog\/how-to-change-password-directadmin-ssh\/#Step_2_Retrieve_the_Current_Admin_Password\" >Step 2: Retrieve the Current Admin Password<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-4\" href=\"https:\/\/chennaiwebhosting.in\/blog\/how-to-change-password-directadmin-ssh\/#Step_3_Reset_directadmin_password_from_SSH\" >Step 3: Reset directadmin password from SSH<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-5\" href=\"https:\/\/chennaiwebhosting.in\/blog\/how-to-change-password-directadmin-ssh\/#Step_4_Update_DirectAdmin_Configuration\" >Step 4: Update DirectAdmin Configuration<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-6\" href=\"https:\/\/chennaiwebhosting.in\/blog\/how-to-change-password-directadmin-ssh\/#Step_5_Restart_DirectAdmin\" >Step 5: Restart DirectAdmin<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-7\" href=\"https:\/\/chennaiwebhosting.in\/blog\/how-to-change-password-directadmin-ssh\/#Alternative_Method_Using_DirectAdmin_Commands\" >Alternative Method: Using DirectAdmin Commands<\/a><\/li><\/ul><\/li><\/ul><\/nav><\/div>\n<h2 id=\"change-password-using-gui\" class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Change_Password_Using_GUI\"><\/span>Change Password Using GUI<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>1. First, to login into DirectAdmin control panel visit,<\/p>\n<p><strong>https:\/\/your-domain.com:2<\/strong>087 or\u00a0<strong>https:\/\/IP-address:2<\/strong>087or\u00a0<strong>https:\/\/server-hostname:2<\/strong>087.<\/p>\n<figure class=\"wp-block-image size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-561\" src=\"https:\/\/www.vpsjungle.in\/tutorials\/wp-content\/uploads\/2024\/07\/Login-DirectAdmin-750x515-1.webp\" sizes=\"auto, (max-width: 750px) 100vw, 750px\" srcset=\"https:\/\/www.vpsjungle.in\/tutorials\/wp-content\/uploads\/2024\/07\/Login-DirectAdmin-750x515-1.webp 750w, https:\/\/www.vpsjungle.in\/tutorials\/wp-content\/uploads\/2024\/07\/Login-DirectAdmin-750x515-1-300x206.webp 300w\" alt=\"\" width=\"750\" height=\"515\" \/><\/figure>\n<p>2. <strong>Top right-click \u2192 Click on Username \u2192 Click <\/strong>on <strong>Password<\/strong>.<\/p>\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-562\" src=\"https:\/\/www.vpsjungle.in\/tutorials\/wp-content\/uploads\/2024\/07\/image.png\" alt=\"\" width=\"219\" height=\"260\" \/><\/figure>\n<p>3. Enter the required information,<\/p>\n<p><strong>Current DirectAdmin Password:<\/strong> Enter the current password of DirectAdmin control panel.<\/p>\n<p><strong>Enter new password: <\/strong>Enter the complex and hard to guess password.<\/p>\n<figure class=\"wp-block-image size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-563\" src=\"https:\/\/www.vpsjungle.in\/tutorials\/wp-content\/uploads\/2024\/07\/save_email_pass.jpg\" sizes=\"auto, (max-width: 909px) 100vw, 909px\" srcset=\"https:\/\/www.vpsjungle.in\/tutorials\/wp-content\/uploads\/2024\/07\/save_email_pass.jpg 909w, https:\/\/www.vpsjungle.in\/tutorials\/wp-content\/uploads\/2024\/07\/save_email_pass-300x132.jpg 300w, https:\/\/www.vpsjungle.in\/tutorials\/wp-content\/uploads\/2024\/07\/save_email_pass-768x337.jpg 768w\" alt=\"\" width=\"909\" height=\"399\" \/><\/figure>\n<p>4. Finally, click on <strong>Save<\/strong>.<\/p>\n<h2 id=\"access-your-server-via-ssh\" class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Access_Your_Server_via_SSH\"><\/span>Access Your Server via SSH<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<ul class=\"wp-block-list\">\n<li>Open your terminal or SSH client.<\/li>\n<\/ul>\n<figure class=\"wp-block-image\"><img decoding=\"async\" class=\"wp-image-613\" src=\"http:\/\/vpswebhostingindia.com\/blog\/wp-content\/uploads\/2024\/05\/image-10.png\" alt=\"reset directadmin password from SSH\" \/><\/figure>\n<ul class=\"wp-block-list\">\n<li>Connect to your server using the root user. For example:<\/li>\n<\/ul>\n<pre class=\"wp-block-code\">&lt;code&gt;   ssh root@your_server_ip&lt;\/code&gt;<\/pre>\n<h3 id=\"step-2-retrieve-the-current-admin-password\" class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Step_2_Retrieve_the_Current_Admin_Password\"><\/span>Step 2: Retrieve the Current Admin Password<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<ol 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<\/ol>\n<pre class=\"wp-block-preformatted\">   cat \/usr\/local\/directadmin\/scripts\/setup.txt | grep adminpass<\/pre>\n<figure class=\"wp-block-image\"><img decoding=\"async\" class=\"wp-image-645\" src=\"https:\/\/vpswebhostingindia.com\/blog\/wp-content\/uploads\/2024\/06\/image-4.png\" alt=\"\" \/><\/figure>\n<ol class=\"wp-block-list\" start=\"2\">\n<li>This command will display a line similar to:<\/li>\n<\/ol>\n<pre class=\"wp-block-preformatted\">   adminpass=your_current_password<\/pre>\n<h3 id=\"step-3-reset-directadmin-password-from-ssh\" class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Step_3_Reset_directadmin_password_from_SSH\"><\/span>Step 3: Reset directadmin password from SSH<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<ol class=\"wp-block-list\">\n<li>To reset the admin password, use the following command:<\/li>\n<\/ol>\n<pre class=\"wp-block-code\">&lt;code&gt;   passwd admin&lt;\/code&gt;<\/pre>\n<ol class=\"wp-block-list\" start=\"2\">\n<li>You will be prompted to enter the new password and confirm it.<\/li>\n<\/ol>\n<figure class=\"wp-block-image\"><img decoding=\"async\" class=\"wp-image-646\" src=\"https:\/\/vpswebhostingindia.com\/blog\/wp-content\/uploads\/2024\/06\/image-5.png\" alt=\"\" \/><\/figure>\n<h3 id=\"step-4-update-direct-admin-configuration\" class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Step_4_Update_DirectAdmin_Configuration\"><\/span>Step 4: Update DirectAdmin Configuration<span class=\"ez-toc-section-end\"><\/span><\/h3>\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<pre class=\"wp-block-code\">&lt;code&gt;   echo &quot;adminpass=new_password&quot; &amp;gt;&amp;gt; \/usr\/local\/directadmin\/scripts\/setup.txt&lt;\/code&gt;<\/pre>\n<h3 id=\"step-5-restart-direct-admin\" class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Step_5_Restart_DirectAdmin\"><\/span>Step 5: Restart DirectAdmin<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<ol class=\"wp-block-list\">\n<li>Finally, restart DirectAdmin to ensure the changes take effect:<\/li>\n<\/ol>\n<pre class=\"wp-block-code\">&lt;code&gt;   service directadmin restart&lt;\/code&gt;<\/pre>\n<figure class=\"wp-block-image\"><img decoding=\"async\" class=\"wp-image-647\" src=\"https:\/\/vpswebhostingindia.com\/blog\/wp-content\/uploads\/2024\/06\/image-6.png\" alt=\"\" \/><\/figure>\n<h3 id=\"alternative-method-using-direct-admin-commands\" class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Alternative_Method_Using_DirectAdmin_Commands\"><\/span>Alternative Method: Using DirectAdmin Commands<span class=\"ez-toc-section-end\"><\/span><\/h3>\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<pre class=\"wp-block-code\">&lt;code&gt;   \/usr\/local\/directadmin\/directadmin set admin_pass new_password&lt;\/code&gt;<\/pre>\n<ol class=\"wp-block-list\" start=\"2\">\n<li>Restart DirectAdmin:<\/li>\n<\/ol>\n<pre class=\"wp-block-code\">&lt;code&gt;   service directadmin restart&lt;\/code&gt;<\/pre>\n<p>Make sure to replace <code>new_password<\/code> with the actual password you want to set.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>In DirectAdmin control panel you can change the present configured password at anytime. 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\u00a0https:\/\/IP-address:2087or\u00a0https:\/\/server-hostname:2087. 2. Top right-click \u2192 Click on Username \u2192 Click [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_bbp_topic_count":0,"_bbp_reply_count":0,"_bbp_total_topic_count":0,"_bbp_total_reply_count":0,"_bbp_voice_count":0,"_bbp_anonymous_reply_count":0,"_bbp_topic_count_hidden":0,"_bbp_reply_count_hidden":0,"_bbp_forum_subforum_count":0,"footnotes":""},"categories":[1],"tags":[],"class_list":["post-2031","post","type-post","status-publish","format-standard","hentry","category-home"],"_links":{"self":[{"href":"https:\/\/chennaiwebhosting.in\/blog\/wp-json\/wp\/v2\/posts\/2031","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/chennaiwebhosting.in\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/chennaiwebhosting.in\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/chennaiwebhosting.in\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/chennaiwebhosting.in\/blog\/wp-json\/wp\/v2\/comments?post=2031"}],"version-history":[{"count":5,"href":"https:\/\/chennaiwebhosting.in\/blog\/wp-json\/wp\/v2\/posts\/2031\/revisions"}],"predecessor-version":[{"id":2036,"href":"https:\/\/chennaiwebhosting.in\/blog\/wp-json\/wp\/v2\/posts\/2031\/revisions\/2036"}],"wp:attachment":[{"href":"https:\/\/chennaiwebhosting.in\/blog\/wp-json\/wp\/v2\/media?parent=2031"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/chennaiwebhosting.in\/blog\/wp-json\/wp\/v2\/categories?post=2031"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/chennaiwebhosting.in\/blog\/wp-json\/wp\/v2\/tags?post=2031"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}