{"id":457,"date":"2019-05-19T06:57:19","date_gmt":"2019-05-19T06:57:19","guid":{"rendered":"https:\/\/www.24x7serversupport.com\/24x7serversupport-blog\/?p=457"},"modified":"2020-05-23T15:57:38","modified_gmt":"2020-05-23T10:27:38","slug":"resetting-email-account-password-from-command-line-in-cpanel","status":"publish","type":"post","link":"https:\/\/www.24x7serversupport.com\/blog\/resetting-email-account-password-from-command-line-in-cpanel\/","title":{"rendered":"Resetting email account password from Command line in cPanel"},"content":{"rendered":"\n<h2 class=\"wp-block-heading\">Resetting email account password from Command line in&nbsp;cPanel<\/h2>\n\n\n\n<p>1) Login to the server as root via SSH<\/p>\n\n\n\n<p>2) Run the command \u201copenssl\u201d and you will see this:<\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\"><p>test@test&nbsp;[~]# openssl<br>OpenSSL&gt;<\/p><\/blockquote>\n\n\n\n<p>3) Now in the OpenSSL prompt give the command : passwd -1&nbsp;\u201cyour_new_email_password\u201d<\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\"><p>test@test&nbsp;[~]# openssl<br>OpenSSL&gt; passwd -1 \u201ctest@123\u201d<br>$1$msdfsfsdsdfdf4pq941w\/j$1KYI5VwHsl8C6h9H6ScTFNWy\/<br>OpenSSL&gt; quit<\/p><\/blockquote>\n\n\n\n<p>Please note the option in command: passwd -1 \u201ctest@123\u201d. It is not alphabet \u201c-l\u201d. It is numeric \u201c-1\u201d.<br>You will get the MD5 encrypted format for your password. Copy it somewhere.<\/p>\n\n\n\n<p>4) Now you need to go to cpanel account\u2019s home directory and then into etc folder.<\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\"><p>test@test&nbsp;[~]# cd \/home\/support\/etc\/24x7serversupport.com<br>test@test&nbsp;[\/home\/test\/support\/24x7serversupport.com]#<\/p><\/blockquote>\n\n\n\n<p>5) There you will be seeing some files : passwd, passwd,v , quota, quota,v , shadow, shadow,v .<br>Here the file we should consider is shadow and shadow,v.<\/p>\n\n\n\n<p>6) If you check out shadow folder, you will see<\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\"><p>test@test&nbsp;[\/home\/support\/etc\/24x7serversupport.com]# cat shadow<br>test:<strong><em>$6$itlQRsdN\/bGoiCB\/n\/$53X3P\/wy.lsS6uds4u7vporiAqdKBnfsF8Zx8b6MXs6\/oxM0inzns3lsDfHdXNygq3pdPOFR57ryWHk63A7JJr2r61<\/em><\/strong>:15673::::::<\/p><\/blockquote>\n\n\n\n<p>Please note that the dark black colored part is the password part. You need to replace it with the MD5 format of your new password which you copied from OpenSSL prompt earlier.<\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\"><p>test:<strong>$1$m4pqsdf941w\/j$1KYI5VwHl8C6h9H6ScTFNWy\/<\/strong>:16673::::::<\/p><\/blockquote>\n\n\n\n<p>Save and close the file.<\/p>\n\n\n\n<p>If&nbsp;shadow,v file is present then replace the encrypted part same as above. If a file is not present then try login to webmail it will work.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Resetting email account password from Command line in&nbsp;cPanel 1) Login to the server as root via SSH 2) Run the command \u201copenssl\u201d and you will see this: test@test&nbsp;[~]# opensslOpenSSL&gt; 3) Now in the OpenSSL prompt give the command : passwd -1&nbsp;\u201cyour_new_email_password\u201d test@test&nbsp;[~]# opensslOpenSSL&gt; passwd -1 \u201ctest@123\u201d$1$msdfsfsdsdfdf4pq941w\/j$1KYI5VwHsl8C6h9H6ScTFNWy\/OpenSSL&gt; quit Please note the option in command: passwd -1 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","enabled":false}}},"categories":[30,38,33,34],"tags":[32,101,102],"class_list":["post-457","post","type-post","status-publish","format-standard","hentry","category-centos","category-cloudlinux","category-cpanel","category-linux","tag-cpanel","tag-email-account","tag-reset-password"],"jetpack_publicize_connections":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v22.5 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>How to reset email account password from command line in cpanel<\/title>\n<meta name=\"description\" content=\"How to reset email account password from command lin in cpanel, Command to reset the email account password from command line,\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.24x7serversupport.com\/blog\/resetting-email-account-password-from-command-line-in-cpanel\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to reset email account password from command line in cpanel\" \/>\n<meta property=\"og:description\" content=\"How to reset email account password from command lin in cpanel, Command to reset the email account password from command line,\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.24x7serversupport.com\/blog\/resetting-email-account-password-from-command-line-in-cpanel\/\" \/>\n<meta property=\"og:site_name\" content=\"24x7serversupport Blog\" \/>\n<meta property=\"article:published_time\" content=\"2019-05-19T06:57:19+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2020-05-23T10:27:38+00:00\" \/>\n<meta name=\"author\" content=\"24x7support\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@24x7serversuppo\" \/>\n<meta name=\"twitter:site\" content=\"@24x7serversuppo\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"24x7support\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.24x7serversupport.com\/blog\/resetting-email-account-password-from-command-line-in-cpanel\/\",\"url\":\"https:\/\/www.24x7serversupport.com\/blog\/resetting-email-account-password-from-command-line-in-cpanel\/\",\"name\":\"How to reset email account password from command line in cpanel\",\"isPartOf\":{\"@id\":\"https:\/\/www.24x7serversupport.com\/blog\/#website\"},\"datePublished\":\"2019-05-19T06:57:19+00:00\",\"dateModified\":\"2020-05-23T10:27:38+00:00\",\"author\":{\"@id\":\"https:\/\/www.24x7serversupport.com\/blog\/#\/schema\/person\/decfb5fad6bde6ac6822d4e965c6d401\"},\"description\":\"How to reset email account password from command lin in cpanel, Command to reset the email account password from command line,\",\"breadcrumb\":{\"@id\":\"https:\/\/www.24x7serversupport.com\/blog\/resetting-email-account-password-from-command-line-in-cpanel\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.24x7serversupport.com\/blog\/resetting-email-account-password-from-command-line-in-cpanel\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.24x7serversupport.com\/blog\/resetting-email-account-password-from-command-line-in-cpanel\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.24x7serversupport.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Resetting email account password from Command line in cPanel\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.24x7serversupport.com\/blog\/#website\",\"url\":\"https:\/\/www.24x7serversupport.com\/blog\/\",\"name\":\"24x7serversupport Blog\",\"description\":\"Linux | CPanel | WHM | webhosting| Plesk | DirectAdmin | CentOs | Debian | Ubuntu Blog\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.24x7serversupport.com\/blog\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.24x7serversupport.com\/blog\/#\/schema\/person\/decfb5fad6bde6ac6822d4e965c6d401\",\"name\":\"24x7support\",\"url\":\"https:\/\/www.24x7serversupport.com\/blog\/author\/24x7support\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to reset email account password from command line in cpanel","description":"How to reset email account password from command lin in cpanel, Command to reset the email account password from command line,","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.24x7serversupport.com\/blog\/resetting-email-account-password-from-command-line-in-cpanel\/","og_locale":"en_US","og_type":"article","og_title":"How to reset email account password from command line in cpanel","og_description":"How to reset email account password from command lin in cpanel, Command to reset the email account password from command line,","og_url":"https:\/\/www.24x7serversupport.com\/blog\/resetting-email-account-password-from-command-line-in-cpanel\/","og_site_name":"24x7serversupport Blog","article_published_time":"2019-05-19T06:57:19+00:00","article_modified_time":"2020-05-23T10:27:38+00:00","author":"24x7support","twitter_card":"summary_large_image","twitter_creator":"@24x7serversuppo","twitter_site":"@24x7serversuppo","twitter_misc":{"Written by":"24x7support","Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.24x7serversupport.com\/blog\/resetting-email-account-password-from-command-line-in-cpanel\/","url":"https:\/\/www.24x7serversupport.com\/blog\/resetting-email-account-password-from-command-line-in-cpanel\/","name":"How to reset email account password from command line in cpanel","isPartOf":{"@id":"https:\/\/www.24x7serversupport.com\/blog\/#website"},"datePublished":"2019-05-19T06:57:19+00:00","dateModified":"2020-05-23T10:27:38+00:00","author":{"@id":"https:\/\/www.24x7serversupport.com\/blog\/#\/schema\/person\/decfb5fad6bde6ac6822d4e965c6d401"},"description":"How to reset email account password from command lin in cpanel, Command to reset the email account password from command line,","breadcrumb":{"@id":"https:\/\/www.24x7serversupport.com\/blog\/resetting-email-account-password-from-command-line-in-cpanel\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.24x7serversupport.com\/blog\/resetting-email-account-password-from-command-line-in-cpanel\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.24x7serversupport.com\/blog\/resetting-email-account-password-from-command-line-in-cpanel\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.24x7serversupport.com\/blog\/"},{"@type":"ListItem","position":2,"name":"Resetting email account password from Command line in cPanel"}]},{"@type":"WebSite","@id":"https:\/\/www.24x7serversupport.com\/blog\/#website","url":"https:\/\/www.24x7serversupport.com\/blog\/","name":"24x7serversupport Blog","description":"Linux | CPanel | WHM | webhosting| Plesk | DirectAdmin | CentOs | Debian | Ubuntu Blog","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.24x7serversupport.com\/blog\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/www.24x7serversupport.com\/blog\/#\/schema\/person\/decfb5fad6bde6ac6822d4e965c6d401","name":"24x7support","url":"https:\/\/www.24x7serversupport.com\/blog\/author\/24x7support\/"}]}},"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_likes_enabled":true,"jetpack-related-posts":[],"_links":{"self":[{"href":"https:\/\/www.24x7serversupport.com\/blog\/wp-json\/wp\/v2\/posts\/457","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.24x7serversupport.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.24x7serversupport.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.24x7serversupport.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.24x7serversupport.com\/blog\/wp-json\/wp\/v2\/comments?post=457"}],"version-history":[{"count":1,"href":"https:\/\/www.24x7serversupport.com\/blog\/wp-json\/wp\/v2\/posts\/457\/revisions"}],"predecessor-version":[{"id":3158,"href":"https:\/\/www.24x7serversupport.com\/blog\/wp-json\/wp\/v2\/posts\/457\/revisions\/3158"}],"wp:attachment":[{"href":"https:\/\/www.24x7serversupport.com\/blog\/wp-json\/wp\/v2\/media?parent=457"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.24x7serversupport.com\/blog\/wp-json\/wp\/v2\/categories?post=457"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.24x7serversupport.com\/blog\/wp-json\/wp\/v2\/tags?post=457"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}