•  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

如何在linux中更改root密碼?

  • Home
  • Client
  • Qa Forum
  • 如何在linux中更改root密碼?

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

我如何去改變linux中的root密碼?這將是很好的覆蓋不同的發行。

Psychz - Ganesh

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

“root”用戶是具有所有權限的默認用戶。要更改根密碼,您需要以root身份登錄到命令提示符並運行命令“passwd”。您也可以運行命令“su”。 su(替代用戶的簡稱)命令使得可以更改登錄會話的所有者(即,最初通過登錄到系統創建該會話的用戶),而不需要首先註銷該會話。

這是演示如何更改根密碼。

先決條件

Linux操作系統(Ubuntu,CentOS,Debian等) - 在這種情況下,我們正在使用CentOS 7

2.根權限

更改根密碼

1.打開操作系統的終端。通過鍵入命令“su”作為“root”登錄。

“su”通常是將登錄會話的所有權更改為root或任何其他用戶的最簡單和最方便的方法。

將顯示密碼提示。請輸入您當前的密碼,以root身份登錄。

2.以root身份登錄後,將運行命令“passwd”。命令行將要求您輸入新密碼。在命令提示符下輸入新密碼(注意:密碼不會顯示在屏幕上)。輸入密碼後,系統將提示您重新輸入密碼,密碼將被更改。

Was this reply helpful?

Related topics

  • 防DDoS攻擊過濾器
  • 計量的專用服務器UK
  • 熱門來源會幫助你學習的Linux
  • 專用服務器設置
  • Why Gaming Companies are Choosing Bare Metal Servers
  • SQL Server企業定價
  • Reference Architecture - Dedicated Server Deployment
  • Nonesense名攻擊是一個嚴重的問題為系統管理者
  • Manage CDN Services
  • Location
  • Launch of New Data Center In Sao Paulo, Brazil
  • How to setup a dedicated server for Team Fortress 2
  • How To Secure cPanel?
  • DDoS攻擊受保護的服務器的Minecraft
  • AMD'S EPYC vs INTEL XEON
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