1. Login via SSH:
    Use an SSH client like Terminal or PuTTY:

    bash
    CopyEdit
    ssh root@your_server_ip

    If you're logged in as another user with sudo privileges, use:

    bash
    CopyEdit
    ssh your_username@your_server_ip
  2. Change the Root Password:

    If you're logged in as root:

    bash
    CopyEdit
    passwd

    If you're logged in as another user with sudo privileges:

    bash
    CopyEdit
    sudo passwd root
  3. Enter and Confirm the New Password:
    You'll be prompted to:

    • Enter the new password

    • Retype it to confirm

    If successful, you’ll see:

    nginx
    CopyEdit
    password updated successfully

⚠️ Tips:

  • Make sure you use a strong password.

  • If root login is disabled via SSH (which is common for security), enable it by editing /etc/ssh/sshd_config and setting:

    bash
    CopyEdit
    PermitRootLogin yes

    Then restart SSH:

    bash
    CopyEdit
    sudo systemctl restart sshd
     

    Need a Domain or Hosting to Get Started?

    If you don’t yet have a domain or email hosting for your business or personal use, Netpoa.com offers reliable, affordable domain registration and hosting services tailored for Tanzania and beyond.

    • Register your .tz domain or international domains with us

    • Get secure email hosting included in our packages

    • Enjoy 24/7 local support to help you set up and manage your emails

    Visit Netpoa.com today to get started and own your professional email!

Was this answer helpful? 98 Users Found This Useful (383 Votes)