•  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(替代用户的简称)命令使得可以更改登录会话的所有者(即,最初通过登录到系统创建该会话的用户),而不需要首先注销该会话。

这是演示如何更改根密码。

先决条件

1. Linux操作系统(Ubuntu,CentOS,Debian等) - 在这种情况下,我们正在使用CentOS 7

2.根权限

更改根密码

1.打开操作系统的终端。通过键入命令“su”作为“root”登录。

“su”通常是将登录会话的所有权更改为root或任何其他用户的最简单和最方便的方法。

将显示密码提示。请输入您当前的密码,以root身份登录。

2.以root身份登录后,将运行命令“passwd”。命令行将要求您输入新密码。在命令提示符下输入新密码(注意:密码不会显示在屏幕上)。输入密码后,系统将提示您重新输入密码,密码将被更改。

Was this reply helpful?

Related topics

  • 高性能计算服务器
  • 数据中心照片
  • 在对比:SQL VS的NoSql
  • 专用未计量cPanel和1 Gbps端口
  • 专用服务器报价
  • sBlock - Snapshots Intro
  • Secure Token Integration For Python
  • Rsync两个目录
  • Psychz网络保障剪切滥用和垃圾邮件的近100%
  • Locations
  • How to Create a Header Override
  • How To Be A Successful Hosting Reseller
  • GitHub survives world's largest DDoS attack
  • Create Cache Bypass
  • Benefits of a multi-CDN environment
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