•  Home
  •  Dashboard
  •  Company
    • About Us
    • Blog
    • Careers
    • Contact Us
    • Data Centers
    • Looking Glass
    • Network
    • Reseller
  •  Hosting Services
    • Infrastructure
      • iColocation
    • Compute
      • cMetal
      • cVirtual
    • Storage
      • sObject
      • sBlock
    • Networking
      • nCDN
      • nIP Transit
      • nWavelength
    • Protection
      • pBackup
      • pDDoS
  •  Solutions
    • Ecommerce
    • Finance
    • Gaming
    • Hosting
    • Management
    • Security
    • System Integrator
  •  Support
    • Community
    • Knowledge Base
    • Open A Ticket
  •  USA & Canada: 800-933-1517
  •  International: 626-549-2801
  •  Email: sales@psychz.net
  • Services
    • new-colocation-header-img
      Infrastructure
      • iColocation
    • new-compute-header-img
      Compute
      • cMetal
      • cVirtual
    • new-storage-header-img
      Storage
      • sObject
      • sBlock
    • new-networking-header-img
      Networking
      • nCDN
      • nIP Transit
      • nWavelength
    • new-protection-header-img
      Protection
      • pBackup
      • pDDoS
  • Solutions
    • Ecommerce
    • Security
    • Gaming
    • Hosting
    • Management
    • Finance
    • System Integrator
  • Dashboard

How to change root password in linux?

  • Home
  • Client
  • Qa Forum
  • How to change root password in linux?

Posted By: SHENGHUA | 1 Replies | Last Reply On: May 26, 2017 04:51:29

How do i go about changing root password in linux?  It would be nice to cover different distros. 
 

Psychz - Ganesh

Votes: 0Posted On: May 26, 2017 04:51:29
 

"Root" gebruiker is de standaard gebruiker met alle rechten. Om het wortelwachtwoord te wijzigen moet u inloggen als root in de opdrachtprompt en het commando "passwd" uitvoeren. U kunt ook het commando "su" uitvoeren. Het commando su (short for substitute user) maakt het mogelijk om de eigenaar van een login sessie te wijzigen (dat wil zeggen de gebruiker die die sessie oorspronkelijk heeft aangemaakt door zich aan te melden bij het systeem), zonder dat de eigenaar eerst uit die sessie moet uitloggen.

Hier is een demonstratie van hoe het wortelwachtwoord kan worden gewijzigd.

voorwaarden

1. Linux besturingssysteem (Ubuntu, CentOS, Debian, enz.) - In dit geval werken we aan CentOS 7

2. Wortelvergunning

Het wortelwachtwoord wijzigen

1. Open de Terminal van uw besturingssysteem. Log in als 'root' door het commando 'su' te typen.

"Su" is meestal de eenvoudigste en makkelijkste manier om het eigendom van een aanmeldingssessie te veranderen aan root of aan een andere gebruiker.

Er wordt een wachtwoordprompt weergegeven. Voer uw huidige wachtwoord in om in te loggen als root.

2. Nadat u bent ingelogd als root, voer het commando "passwd" in. De opdrachtregel vraagt ​​u om een ​​nieuw wachtwoord. Voer het nieuwe wachtwoord in de opdrachtprompt in (Opmerking: het wachtwoord wordt niet op het scherm weergegeven). Nadat u het wachtwoord hebt ingevoerd, wordt u gevraagd het wachtwoord opnieuw in te typen en uw wachtwoord wordt gewijzigd.

Was this reply helpful?

Related topics

  • How to update root document path for a website in cPanel?
  • How to change the password through Remote Desktop (RDP)
  • How to change user password in Linux?
  • Basic and useful Linux commands
  • How to change cpanel password from WHM?
  • Hosting With Root Access
  • Multi-Factor Authentication (MFA): A must for your account security!
  • Installing MariaDB on Centos 7
  • Top Encryption Software For Windows
  • Mirai DDoS attacks- Then and Now
  • Linux File Permissions Cheat Sheet
  • How to setup a dedicated server for Unturned
  • Unable to Access The Server Via SSH
  • Scientific Linux and its features
  • How to rsync two directories
Copyright © 2025 Psychz Networks,
A Profuse Solutions Inc Company
Hosting Services
Infrastructure
  • iColocation
Compute
  • cMetal
  • cVirtual
Storage
  • sObject
  • sBlock
Networking
  • nCDN
  • nIP Transit
  • nWavelength
Protection
  • pBackup
  • pDDoS
Company
  • About Us
  • Blog
  • Careers
  • Contact Us
  • Data Centers
  • Looking Glass
  • Network
  • Reseller
Policies
  • Acceptable Usage Policy
  • Privacy Policy
  • Service Level Agreement
  • Terms and Conditions
Support
  • Community
  • Knowledge Base
  • Open A Ticket
Get In Touch
  • Psychz Networks,
    A Profuse Solutions Company
    611 Wilshire Blvd #300
    Los Angeles,California 90017
    USA
  • US/Canada: 800-933-1517
  • International: 626-549-2801