{"id":9038,"date":"2026-05-30T16:22:22","date_gmt":"2026-05-30T14:22:22","guid":{"rendered":"https:\/\/mybox.com\/help\/?post_type=manual_kb&#038;p=9038"},"modified":"2026-05-30T16:22:23","modified_gmt":"2026-05-30T14:22:23","slug":"ssh-commands-passwd","status":"publish","type":"manual_kb","link":"https:\/\/mybox.com\/help\/en\/knowledgebase\/ssh-commands-passwd\/","title":{"rendered":"SSH Commands &#8211; passwd"},"content":{"rendered":"\n<div class=\"translation-block translation-block-merged\">\n<p class=\"wp-block-paragraph\">The <code>passwd<\/code> command is used to change a user password in a Linux system through SSH. It updates the authentication credentials for the current user or another system user (depending on permissions).<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">It is commonly used for improving account security or resetting access credentials on a server.<\/p>\n\n\n\n<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_86 ez-toc-wrap-left counter-hierarchy ez-toc-counter ez-toc-custom 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\"><\/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:\/\/mybox.com\/help\/en\/knowledgebase\/ssh-commands-passwd\/#How_the_command_works\" >How the command works<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/mybox.com\/help\/en\/knowledgebase\/ssh-commands-passwd\/#Changing_a_password\" >Changing a password<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-3\" href=\"https:\/\/mybox.com\/help\/en\/knowledgebase\/ssh-commands-passwd\/#Changing_another_users_password\" >Changing another user\u2019s password<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-4\" href=\"https:\/\/mybox.com\/help\/en\/knowledgebase\/ssh-commands-passwd\/#Password_requirements\" >Password requirements<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-5\" href=\"https:\/\/mybox.com\/help\/en\/knowledgebase\/ssh-commands-passwd\/#Practical_use_cases\" >Practical use cases<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-6\" href=\"https:\/\/mybox.com\/help\/en\/knowledgebase\/ssh-commands-passwd\/#Practical_implications\" >Practical implications<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-7\" href=\"https:\/\/mybox.com\/help\/en\/knowledgebase\/ssh-commands-passwd\/#Summary\" >Summary<\/a><\/li><\/ul><\/nav><\/div>\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"How_the_command_works\"><\/span>How the command works<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<\/div>\n\n<div id=\"mybox-986960461\" class=\"mybox-content mybox-entity-placement\"><div class=\"early-access-banner-inpost\">\r\n  <div class=\"banner-left-inpost\">\r\n    <div class=\"icon-box-inpost\">\r\n      <img decoding=\"async\" src=\"https:\/\/mybox.com\/help\/wp-content\/uploads\/2026\/02\/square-info-icon.svg\" alt=\"Info\">\r\n    <\/div>\r\n    <div class=\"text-box-inpost\">\r\n      <span class=\"label-inpost\"><span class=\"translation-block translation-block-banner-text\">Early access<\/span><\/span>\r\n      <h4><span class=\"translation-block translation-block-banner-text\">Still need help?<\/span><\/h4>\r\n      <p><span class=\"translation-block translation-block-banner-text\">Contact our customer service team.<\/span><\/p>\r\n    <\/div>\r\n  <\/div>\r\n\r\n  <div class=\"banner-right-inpost\">\r\n    <a href=\"https:\/\/panel.mybox.com\/helpdesk2\/v\/list\/\" class=\"banner-button-inpost\"><span class=\"translation-block translation-block-banner-text\">Message us<\/span><\/a>\r\n  <\/div>\r\n<\/div><\/div>\n\n<div class=\"translation-block translation-block-merged\"><p class=\"wp-block-paragraph\">The basic structure is:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>passwd\n<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">When executed without additional parameters, the command changes the password of the currently logged-in user.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Changing_a_password\"><\/span>Changing a password<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">After running the command, the system will prompt for input:<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Enter the current password<\/li>\n\n\n\n<li>Enter the new password<\/li>\n\n\n\n<li>Confirm the new password<\/li>\n<\/ol>\n\n\n\n<p class=\"wp-block-paragraph\">If all inputs match and meet system requirements, the password is updated immediately.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Changing_another_users_password\"><\/span>Changing another user\u2019s password<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">If you have sufficient privileges (for example, root access), you can change another user\u2019s password:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>passwd username\n<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Replace <code>username<\/code> with the target account name.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Password_requirements\"><\/span>Password requirements<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Depending on system configuration, the new password may need to meet certain rules such as:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>minimum length requirements<\/li>\n\n\n\n<li>complexity rules (letters, numbers, symbols)<\/li>\n\n\n\n<li>avoidance of common or previously used passwords<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Practical_use_cases\"><\/span>Practical use cases<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">The <code>passwd<\/code> command is commonly used for:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>resetting lost or compromised passwords<\/li>\n\n\n\n<li>updating credentials for security reasons<\/li>\n\n\n\n<li>managing multiple system users on a server<\/li>\n\n\n\n<li>enforcing access control policies<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Practical_implications\"><\/span>Practical implications<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Password changes take effect immediately. The next login attempt must use the new password.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">If SSH key authentication is enabled, password changes do not affect key-based access.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Incorrect password changes or forgotten credentials may temporarily block access to the account until reset through the hosting panel or support tools.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Summary\"><\/span>Summary<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">The <code>passwd<\/code> command allows users to change their system password directly from SSH. It is a core security tool used for managing access to a Linux environment.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n<\/div>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"template":"","format":"standard","manualknowledgebasecat":[54],"manual_kb_tag":[1338,1759,2062,3549,3675,4086,6078,6079,6080,6081],"class_list":["post-9038","manual_kb","type-manual_kb","status-publish","format-standard","hentry","manualknowledgebasecat-ssh","manual_kb_tag-password-complexity","manual_kb_tag-password-security","manual_kb_tag-change-password","manual_kb_tag-password-requirements","manual_kb_tag-reset-password","manual_kb_tag-root-access","manual_kb_tag-passwd-command","manual_kb_tag-linux-system","manual_kb_tag-user-password","manual_kb_tag-authentication-credentials"],"_links":{"self":[{"href":"https:\/\/mybox.com\/help\/en\/wp-json\/wp\/v2\/manual_kb\/9038","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/mybox.com\/help\/en\/wp-json\/wp\/v2\/manual_kb"}],"about":[{"href":"https:\/\/mybox.com\/help\/en\/wp-json\/wp\/v2\/types\/manual_kb"}],"author":[{"embeddable":true,"href":"https:\/\/mybox.com\/help\/en\/wp-json\/wp\/v2\/users\/1"}],"version-history":[{"count":1,"href":"https:\/\/mybox.com\/help\/en\/wp-json\/wp\/v2\/manual_kb\/9038\/revisions"}],"predecessor-version":[{"id":9039,"href":"https:\/\/mybox.com\/help\/en\/wp-json\/wp\/v2\/manual_kb\/9038\/revisions\/9039"}],"wp:attachment":[{"href":"https:\/\/mybox.com\/help\/en\/wp-json\/wp\/v2\/media?parent=9038"}],"wp:term":[{"taxonomy":"manualknowledgebasecat","embeddable":true,"href":"https:\/\/mybox.com\/help\/en\/wp-json\/wp\/v2\/manualknowledgebasecat?post=9038"},{"taxonomy":"manual_kb_tag","embeddable":true,"href":"https:\/\/mybox.com\/help\/en\/wp-json\/wp\/v2\/manual_kb_tag?post=9038"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}