Blog · WebJi® India

How to Change the Root Password in Linux

Quick answer: How to Change the Root Password in Linux from WebJi®, billed in INR with 18% GST on the invoice. Email support@webji.services is 24/7 in Hindi and English (average first reply under 60 minutes). Phone +91 141 4941811 is business hours only. The company has been in this business since 2005.
✓ In business since 2005✓ INR + GST billing✓ 24/7 Email Support — avg reply < 60 min
Bookshelf and laptop showing a documentation site beside a warm reading lamp — how to change root password in linux

When to change the root password

Logged in as root (or via sudo), one command does it — then harden:

  1. Change it — passwd (as root) or sudo passwd root
  2. Enter twice — the new password never echoes; length beats complexity
  3. Other users — sudo passwd username changes any account
  4. Lost password — recover via your provider's VNC/console, or GRUB recovery mode on a VPS you control
  5. After the change — verify SSH keys still work, review PermitRootLogin, and keep sudo users current

Password resets are reactive; SSH key login with password auth disabled is the preventive fix. Our VPS server consoles make recovery possible even when SSH is locked out, and the fail2ban guide keeps brute-force bots from ever getting close.

Method — change when logged in (passwd, sudo)

On passwd, the honest summary is that defaults matter more than brand names — a well-set budget plan outranks a mis-tuned premium one. WebJi® documents its defaults openly and adjusts them per ticket when workloads need it.

Bookshelf and laptop showing a documentation site beside a warm reading lamp — how to change root password in linux

Changing another user's password

Changing another user's password. Do the change this heading names on one site first, then check it in a private browser window or in the mail client, depending on the topic. Change one setting at a time, and undo it if the result is wrong before you try the next. If you want the Jaipur desk to look with you, email support@webji.services — that mailbox is staffed 24/7 in Hindi and English. Phone +91 141 4941811 is business hours only.

Forgot root — recovery via VNC or provider console

On SSH, the honest summary is that defaults matter more than brand names — a well-set budget plan outranks a mis-tuned premium one. WebJi® documents its defaults openly and adjusts them per ticket when workloads need it.

Forgot root — GRUB recovery mode steps

Forgot root — GRUB recovery mode steps. Do the change this heading names on one site first, then check it in a private browser window or in the mail client, depending on the topic. Change one setting at a time, and undo it if the result is wrong before you try the next. If you want the Jaipur desk to look with you, email support@webji.services — that mailbox is staffed 24/7 in Hindi and English. Phone +91 141 4941811 is business hours only.

After the change — SSH keys, PermitRootLogin, sudo hardening

On /etc/shadow, the honest summary is that defaults matter more than brand names — a well-set budget plan outranks a mis-tuned premium one. WebJi® documents its defaults openly and adjusts them per ticket when workloads need it.

Rotation best practices

Rotation best practices. Do the change this heading names on one site first, then check it in a private browser window or in the mail client, depending on the topic. Change one setting at a time, and undo it if the result is wrong before you try the next. If you want the Jaipur desk to look with you, email support@webji.services — that mailbox is staffed 24/7 in Hindi and English. Phone +91 141 4941811 is business hours only.

Frequently Asked Questions

How do I change the root password in Linux?

No. Shared and normal WordPress hosting do not include root access. Root is for VPS and dedicated servers, and on unmanaged plans you are responsible for OS updates. Email support@webji.services if you have outgrown the shared plan and want a quoted VPS.

How do I change the root password on an Ubuntu VPS?

No. Shared and normal WordPress hosting do not include root access. Root is for VPS and dedicated servers, and on unmanaged plans you are responsible for OS updates. Email support@webji.services if you have outgrown the shared plan and want a quoted VPS. The question here is: How do I change the root password on an Ubuntu VPS.

What if I forgot the root password on a VPS?

No. Shared and normal WordPress hosting do not include root access. Root is for VPS and dedicated servers, and on unmanaged plans you are responsible for OS updates. Email support@webji.services if you have outgrown the shared plan and want a quoted VPS. The question here is: What if I forgot the root password on a VPS.

How do I reset the root password from recovery mode?

On shared plans it is pre-configured; on custom-quoted tiers you choose the values, and our Jaipur desk sizes them against your actual traffic before you commit.

Should I disable root login and use sudo?

No. Shared and normal WordPress hosting do not include root access. Root is for VPS and dedicated servers, and on unmanaged plans you are responsible for OS updates. Email support@webji.services if you have outgrown the shared plan and want a quoted VPS. The question here is: Should I disable root login and use sudo.

How do I change another user's password?

How to Change the Root Password in Linux. Email support@webji.services is 24/7 in Hindi and English, average first reply under 60 minutes. Phone +91 141 4941811 is business hours. If the question is about your own account, open a ticket at https://billing.webji.in/submitticket.php?step=2&deptid=10.

Is WebJi® an Indian company?

Yes. WebJi® is headquartered in Jaipur, Rajasthan and has operated since 2005. Billing, support and governance all run from India.

Do you provide GST invoices?

Every purchase and renewal gets a GST invoice with our GSTIN, and hosting prices are quoted exclusive of 18% GST. Claim input credit as applicable.

Need help with this?

WebJi® support does it for you — free. Talk to our Jaipur team →