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

วิธีการเปลี่ยนรหัสผ่าน root ใน linux?

  • Home
  • Client
  • Qa Forum
  • วิธีการเปลี่ยนรหัสผ่าน root ใน linux?

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

ฉันจะไปเกี่ยวกับการเปลี่ยนรหัสผ่าน root ใน linux ได้อย่างไร? มันจะดีที่จะครอบคลุม distros ที่แตกต่างกัน

Psychz - Ganesh

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

ผู้ใช้ "ราก" เป็นผู้ใช้เริ่มต้นที่มีสิทธิ์ทั้งหมด ในการเปลี่ยนรหัสผ่าน Root คุณต้องล็อกอินเป็น root ใน Command Prompt และรันคำสั่ง "passwd" นอกจากนี้คุณยังสามารถเรียกใช้คำสั่ง "su" คำสั่ง su (short for substitute user) ช่วยให้สามารถเปลี่ยนเจ้าของเซสชันการเข้าสู่ระบบ (เช่นผู้ใช้ที่สร้างเซสชั่นดังกล่าวโดยการล็อกออนเข้าสู่ระบบ) โดยที่เจ้าของไม่จำเป็นต้องออกจากระบบก่อน

นี่เป็นการสาธิตวิธีการเปลี่ยนรหัสผ่าน Root

ข้อกำหนดเบื้องต้น

1. ระบบปฏิบัติการ Linux (Ubuntu, CentOS, Debian ฯลฯ ) - ในกรณีนี้เรากำลังทำงานกับ CentOS 7

2. ได้รับอนุญาตจากราก

การเปลี่ยนรหัสผ่าน Root

1. เปิด Terminal ของระบบปฏิบัติการของคุณ ล็อกอินเป็น "root" โดยพิมพ์คำสั่ง "su"

"su" เป็นวิธีที่ง่ายและสะดวกที่สุดในการเปลี่ยนกรรมสิทธิ์ของเซสชันการล็อกอินเพื่อใช้ root หรือกับผู้ใช้คนอื่น ๆ

ระบบจะแสดงพรอมต์รหัสผ่าน โปรดพิมพ์รหัสผ่านปัจจุบันของคุณเพื่อเข้าสู่ระบบด้วย root

2. หลังจากที่คุณล็อกอินด้วย root ให้รันคำสั่ง "passwd" บรรทัดคำสั่งจะถามรหัสผ่านใหม่ ใส่รหัสผ่านใหม่ในคำสั่ง (หมายเหตุ: รหัสผ่านจะไม่ปรากฏบนหน้าจอ) หลังจากพิมพ์รหัสผ่านแล้วระบบจะขอให้คุณพิมพ์รหัสผ่านอีกครั้งและรหัสผ่านของคุณจะถูกเปลี่ยน

Was this reply helpful?

Related topics

  • คำสั่งลินุกซ์ขั้นพื้นฐานและมีประโยชน์
  • วิธีการปรับปรุงเส้นทางเอกสารหลักสำหรับเว็บไซต์ใน cPanel?
  • Hosting With Root Access
  • Unmanaged Dedicated Server Hosting
  • โซลูชันเฉพาะของ Linux และ Windows
  • เซิร์ฟเวอร์โฮสติ้ง Linux แบบ Dedicated
  • Installing MariaDB on Centos 7
  • How to setup a dedicated server for Unturned
  • Unable to Access The Server Via SSH
  • How to rsync two directories
  • cVirtual Connect from Windows
  • วิทยาศาสตร์ Linux และคุณลักษณะของมัน
  • สูงสุดตำนานเกี่ยวกับการรักษาความปลอดภัยลินุกซ์
  • สิ่งที่วิทยาศาสตร์ลินุกซ์และคุณลักษณะของมัน
  • ซอฟต์แวร์การเข้ารหัสด้านบนสำหรับลินุกซ์
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