{"id":3546,"date":"2023-11-17T14:53:13","date_gmt":"2023-11-17T06:53:13","guid":{"rendered":"https:\/\/www.servergigabit.com\/guide\/?post_type=kb&#038;p=3546"},"modified":"2026-03-16T14:53:45","modified_gmt":"2026-03-16T06:53:45","slug":"secure-recover-system-password","status":"publish","type":"kb","link":"https:\/\/www.servergigabit.com\/guide\/kb\/secure-recover-system-password","title":{"rendered":"4 Essential Steps to Secure and Recover Your System Password"},"content":{"rendered":"<p><img fetchpriority=\"high\" decoding=\"async\" class=\"alignnone wp-image-3547\" src=\"https:\/\/www.servergigabit.com\/guide\/wp-content\/uploads\/2023\/11\/download-1-300x226.jpeg\" alt=\"\" width=\"660\" height=\"497\" srcset=\"https:\/\/www.servergigabit.com\/guide\/wp-content\/uploads\/2023\/11\/download-1-300x226.jpeg 300w, https:\/\/www.servergigabit.com\/guide\/wp-content\/uploads\/2023\/11\/download-1-370x279.jpeg 370w, https:\/\/www.servergigabit.com\/guide\/wp-content\/uploads\/2023\/11\/download-1-390x294.jpeg 390w, https:\/\/www.servergigabit.com\/guide\/wp-content\/uploads\/2023\/11\/download-1.jpeg 714w\" sizes=\"(max-width: 660px) 100vw, 660px\" \/><\/p>\n<p>Losing access to your system&#8217;s main password, whether it&#8217;s for Linux or Windows, can be an extremely frustrating and risky situation. It can disrupt your work and compromise your data. Recognizing the importance of this issue, we&#8217;re here to assist you in the process of recovering your password.<\/p>\n<p>However, before we delve into the step-by-step recovery process, it&#8217;s crucial to stress that prevention is just as vital as recovery. To aid in organizing your passwords and fortifying your digital security, we offer a guide on installing Bitwarden on a VPS. Bitwarden, a popular password manager, can significantly simplify managing passwords and bolster your digital security. Let&#8217;s begin and help you take charge of your digital safety.<\/p>\n<h2 id=\"h-how-to-create-a-secure-password\" class=\"wp-block-heading\"><span id=\"how-to-create-a-secure-password\" class=\"uag-toc__heading-anchor\"><\/span><strong>How to Create a Secure Password<\/strong><\/h2>\n<p>Whether it&#8217;s safeguarding personal accounts or critical business systems, the security of your passwords is fundamental to digital protection. In the forthcoming section, we&#8217;ll provide crucial tips for crafting secure passwords, offering practical advice to fortify your online security.<\/p>\n<ul>\n<li><strong>Complexity:<\/strong> Develop passwords that incorporate a mix of upper and lower-case letters, numbers, and special characters to enhance complexity.<\/li>\n<li><strong>Length:<\/strong> Aim for passwords that are a minimum of 12 to 16 characters long, or even longer for heightened security.<\/li>\n<li><strong>Avoiding Common Patterns:<\/strong> Refrain from using easily guessable information like common words, phrases, or predictable patterns.<\/li>\n<li><strong>Uniqueness:<\/strong> Never reuse passwords across multiple accounts or systems; each password should be unique to avert potential security breaches.<\/li>\n<\/ul>\n<p>To evaluate your password&#8217;s security, you can utilize websites such as &#8220;<a href=\"https:\/\/www.security.org\/how-secure-is-my-password\/\" target=\"_blank\" rel=\"noopener\">How Secure Is My Password.<\/a>&#8221; This tool estimates the time it would take for a computer to crack your password, assisting in gauging its strength.<\/p>\n<p>Additionally, there are tools available, like the <a href=\"https:\/\/bitwarden.com\/password-generator\/\" target=\"_blank\" rel=\"noopener\">Strong Password Generator<\/a> on the Bitwarden website, which can aid in creating a secure password.<\/p>\n<p>By adhering to these password security guidelines and utilizing such tools, you can notably fortify your server&#8217;s security and safeguard sensitive data from potential threats.With the framework for creating secure passwords established, let&#8217;s also explore the process of resetting system passwords in various operating systems.<\/p>\n<h2 id=\"h-resetting-linux-root-password\" class=\"wp-block-heading\"><span id=\"resetting-linux-root-password\" class=\"uag-toc__heading-anchor\"><\/span><strong>Resetting Linux Root Password<\/strong><\/h2>\n<p>Should you ever find yourself locked out of your Server Gigabit due to a forgotten root password, fear not \u2013 there are several methods available to regain access. Below, we&#8217;ll explore two approaches for resetting the Linux root password:<\/p>\n<h3 id=\"h-option-1-using-the-contabo-customer-control-panel-ccp\" class=\"wp-block-heading\"><span id=\"option-1-using-the-contabo-customer-control-panel-ccp\" class=\"uag-toc__heading-anchor\"><\/span><strong>Option 1: Using the Contabo Customer Control Panel (CCP)\u00a0<\/strong><\/h3>\n<p>For Server Gigabit users, resetting the Linux root password is a straightforward process through the Server Gigabit Control Panel. Here&#8217;s how:<\/p>\n<ol>\n<li>Log in to your <a href=\"https:\/\/billing.servergigabit.com\/clientarea.php\">Server Gigabit Control Panel<\/a> using your credentials.<\/li>\n<li>Navigate to the menu on the left and click on \u201cYour Services\u201d.<\/li>\n<li>Hover over the \u201cManage\u201d button next to the server requiring a password reset and click on \u201cControl\u201d.<\/li>\n<li>Again, hover over the \u201cManage\u201d button for the corresponding server and select \u201cPassword reset\u201d.<\/li>\n<li>Create a new root password in the prompted menu, then click on \u201cPerform password reset\u201d.<\/li>\n<\/ol>\n<h3 id=\"h-option-2-manual-reset-via-rescue-mode\" class=\"wp-block-heading\"><span id=\"option-2-manual-reset-via-rescue-mode\" class=\"uag-toc__heading-anchor\"><\/span><strong>Option 2: Manual Reset via Rescue Mode<\/strong><\/h3>\n<p>If you&#8217;re not using Server Gigabit or prefer a manual approach, you can reset the Linux root password using Rescue Mode. Here&#8217;s a step-by-step guide:<\/p>\n<p data-sourcepos=\"3:1-3:24\"><strong>Enter Rescue Mode<\/strong><\/p>\n<p data-sourcepos=\"5:1-5:63\">a. Access your server&#8217;s hosting provider control panel and find the &#8220;Rescue Mode&#8221; or &#8220;Recovery Mode&#8221; option.<\/p>\n<p data-sourcepos=\"5:1-5:63\">b. For Server Gigabit users, go to the <a href=\"https:\/\/billing.servergigabit.com\/clientarea.php\">Customer Control Panel (CCP)<\/a>, select &#8220;Your Services&#8221; from the left menu bar, and choose &#8220;Rescue System&#8221; under the &#8220;Manage&#8221; button.<\/p>\n<p data-sourcepos=\"5:1-5:63\">c. Keep the default &#8220;Debian Rescue (Recommended)&#8221; version and set a password for the Rescue instance.<\/p>\n<p data-sourcepos=\"5:1-5:63\">d. Click &#8220;Start rescue system&#8221; to activate Rescue Mode.<\/p>\n<p data-sourcepos=\"10:1-10:22\"><strong>2. Connect to Rescue Mode<\/strong><\/p>\n<p data-sourcepos=\"12:1-13:105\">a. Use SSH or the web-based console provided by your hosting provider to connect to your server in Rescue Mode.<\/p>\n<p data-sourcepos=\"12:1-13:105\">b. For Server Gigabit users, use the server&#8217;s IP address and the password created in step 1a to connect via SSH.<\/p>\n<p data-sourcepos=\"15:1-15:62\"><strong>3. Mount the System Partition and Change the Root Password<\/strong><\/p>\n<p data-sourcepos=\"17:1-19:62\">a. Identify the system partition using the command <code class=\"\">fdisk \u2013l<\/code>.<\/p>\n<pre class=\"wp-block-code\"><code>fdisk \u2013l\u00a0<\/code><\/pre>\n<p>On our test server the output looks like this:<\/p>\n<figure class=\"wp-block-image size-full\"><picture><source srcset=\"https:\/\/contabo.com\/blog\/wp-content\/uploads\/2023\/09\/image-23.png.webp 754w, https:\/\/contabo.com\/blog\/wp-content\/uploads\/2023\/09\/image-23-600x228.png.webp 600w\" type=\"image\/webp\" sizes=\"(max-width: 754px) 100vw, 754px\" \/><img decoding=\"async\" class=\"wp-image-17597 webpexpress-processed\" src=\"https:\/\/contabo.com\/blog\/wp-content\/uploads\/2023\/09\/image-23.png\" sizes=\"(max-width: 754px) 100vw, 754px\" srcset=\"https:\/\/contabo.com\/blog\/wp-content\/uploads\/2023\/09\/image-23.png 754w, https:\/\/contabo.com\/blog\/wp-content\/uploads\/2023\/09\/image-23-600x228.png 600w\" alt=\"How to Reset the System Password (Linux &amp; Windows) (all partitions)\" width=\"754\" height=\"286\" \/><\/picture><\/figure>\n<p data-sourcepos=\"17:1-19:62\">b. Mount the system partition using the command <code class=\"\">mount [device] \/mnt<\/code> (replace <code class=\"\">[device]<\/code> with the identified partition). Check if the correct partition is mounted using the command <code class=\"\">ls<\/code> within the mounted directory <code class=\"\">\/mnt<\/code>.<\/p>\n<pre class=\"wp-block-code\"><code>mount [device] \/mnt\u00a0<\/code><\/pre>\n<pre class=\"wp-block-code\"><code>cd \/mnt\u00a0<\/code><\/pre>\n<pre class=\"wp-block-code\"><code>ls\u00a0<\/code><\/pre>\n<p data-sourcepos=\"17:1-19:62\">c. Unmount the wrong partition if necessary using the command <code class=\"\">umount \/mnt<\/code>.<\/p>\n<pre class=\"wp-block-code\"><code>umount \/mnt\u00a0<\/code><\/pre>\n<p data-sourcepos=\"17:1-19:62\">d. Once the correct partition is mounted, change the root password using the commands <code class=\"\">chroot \/mnt \/bin\/bash<\/code> and <code class=\"\">passwd root<\/code>.<\/p>\n<pre class=\"wp-block-code\"><code>chroot \/mnt \/bin\/bash<\/code><\/pre>\n<p data-sourcepos=\"17:1-19:62\"><span class=\"animating\">e.<\/span><span class=\"animating\"> Exit the Rescue Mode session using the commands <\/span><code class=\"\">exit<\/code><span class=\"animating\"> and <\/span><code class=\"\">umount \/mnt<\/code><span class=\"animating\">.<\/span><\/p>\n<pre class=\"wp-block-code\"><code>exit<\/code><\/pre>\n<pre class=\"wp-block-code\"><code>umount \/mnt<\/code><\/pre>\n<h2 id=\"h-resetting-the-windows-server-administrator-password\" class=\"wp-block-heading\"><span id=\"resetting-the-windows-server-administrator-password\" class=\"uag-toc__heading-anchor\"><\/span><strong>Resetting the Windows Server Administrator Password<\/strong><\/h2>\n<p>Resetting the Administrator password on Windows Server is more complex than on Linux due to enhanced security features. Direct password resets are not allowed to prevent unauthorized access and potential security breaches.<\/p>\n<h3 id=\"h-why-doesn-t-microsoft-allows-to-reset-the-administrator-password\" class=\"wp-block-heading\"><span id=\"why-doesnt-microsoft-allows-to-reset-the-administrator-password\" class=\"uag-toc__heading-anchor\"><\/span><strong>Why Doesn\u2019t Microsoft Allows to Reset the Administrator Password?<\/strong><\/h3>\n<p>Modern Windows Server versions employ robust security protocols to protect your data and system integrity. These protocols include encryption of stored passwords and account lockout policies. These measures prevent unauthorized individuals from accessing your system, even if they gain possession of your password. As a result, direct password resets are not permitted to maintain system security.<\/p>\n<h3 id=\"h-alternative-approach-recovering-files-and-reinstalling-windows-server\" class=\"wp-block-heading\"><span id=\"alternative-approach-recovering-files-and-reinstalling-windows-server\" class=\"uag-toc__heading-anchor\"><\/span><strong>Alternative Approach: Recovering Files and Reinstalling Windows Server<\/strong><\/h3>\n<p data-sourcepos=\"9:1-9:15\">The recommended approach to regain access when the Administrator password is lost is to recover essential files and reinstall Windows Server:<\/p>\n<ul data-sourcepos=\"11:1-12:2\">\n<li data-sourcepos=\"11:1-11:36\">Create backups of important data.<\/li>\n<li data-sourcepos=\"12:1-12:2\">Reinstall Windows Server with a new Administrator password.<\/li>\n<li data-sourcepos=\"13:1-14:0\">Restore your data from the backups.<\/li>\n<\/ul>\n<h2><strong><span style=\"color: #1d1d1d; font-family: Montserrat, sans-serif; font-size: 3.2143rem; letter-spacing: -0.3px;\">Conclusion<\/span><\/strong><\/h2>\n<p data-sourcepos=\"17:1-17:45\">Managing system passwords is crucial for both Linux and Windows systems. Losing access can lead to significant disruptions.<\/p>\n<p data-sourcepos=\"19:1-19:18\"><strong>Key Takeaways:<\/strong><\/p>\n<ul data-sourcepos=\"21:1-23:66\">\n<li data-sourcepos=\"21:1-21:89\">Follow the steps in this article to safely regain access to your Windows Server system.<\/li>\n<li class=\"animating\" data-sourcepos=\"22:1-22:57\"><span class=\"animating\">Use a password manager to better manage your passwords.<\/span><\/li>\n<li class=\"animating\" data-sourcepos=\"23:1-23:66\"><span class=\"animating\">Prioritize password management to enhance your digital security.<\/span><\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>Losing access to your system&#8217;s main password, whether it&#8217;s for Linux or Windows, can be an extremely frustrating and risky situation. It can disrupt your work and compromise your data. Recognizing the importance of this issue, we&#8217;re here to assist you in the process of recovering your password. However, before we delve into the step-by-step recovery process, it&#8217;s crucial to&hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"kbtopic":[1099],"kbtag":[1230],"class_list":["post-3546","kb","type-kb","status-publish","hentry","kbtopic-tutorials","kbtag-password"],"_links":{"self":[{"href":"https:\/\/www.servergigabit.com\/guide\/wp-json\/wp\/v2\/kb\/3546","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.servergigabit.com\/guide\/wp-json\/wp\/v2\/kb"}],"about":[{"href":"https:\/\/www.servergigabit.com\/guide\/wp-json\/wp\/v2\/types\/kb"}],"author":[{"embeddable":true,"href":"https:\/\/www.servergigabit.com\/guide\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.servergigabit.com\/guide\/wp-json\/wp\/v2\/comments?post=3546"}],"version-history":[{"count":5,"href":"https:\/\/www.servergigabit.com\/guide\/wp-json\/wp\/v2\/kb\/3546\/revisions"}],"predecessor-version":[{"id":6318,"href":"https:\/\/www.servergigabit.com\/guide\/wp-json\/wp\/v2\/kb\/3546\/revisions\/6318"}],"wp:attachment":[{"href":"https:\/\/www.servergigabit.com\/guide\/wp-json\/wp\/v2\/media?parent=3546"}],"wp:term":[{"taxonomy":"kbtopic","embeddable":true,"href":"https:\/\/www.servergigabit.com\/guide\/wp-json\/wp\/v2\/kbtopic?post=3546"},{"taxonomy":"kbtag","embeddable":true,"href":"https:\/\/www.servergigabit.com\/guide\/wp-json\/wp\/v2\/kbtag?post=3546"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}