+ Reply to Thread
Results 1 to 3 of 3
  1. Member
    Join Date
    Mar 2016
    Location
    North America
    Posts
    73
    #1

    Default RHEL 6 - Root Password Change (How To)

    Hello,

    I have a question in regards to the Root password reset. How does a newbie do it?

    I'm trying to change the password and there's no "icon" for that.

    When I go into terminal, it says I need to be logged into root.

    Isn't the main account that I created, the root account?

    Thank you,
    Reply With Quote Quote  

  2. SS -->
  3. Senior Member alias454's Avatar
    Join Date
    Sep 2014
    Posts
    609

    Certifications
    BSIT, A+, eJPT, GSEC, VCP5-DCV
    #2
    In a terminal type sudo passwd root and enter your current password when prompted.
    Reply With Quote Quote  

  4. Member
    Join Date
    Aug 2012
    Location
    Toronto, ON
    Posts
    68

    Certifications
    RHCSA (RHEL6), CCENT, ITIL Foundations v3 (ITSM)
    #3
    Type the command in a terminal exactly as alias454 typed it in bold and you'll be on your way to change root's password. Just to elaborate a little bit on what's going on here:


    "Isn't the main account that I created, the root account?"


    When installing RHEL (or one of its clones such as CentOS), you'll be asked to provide a password for the root account and to optionally create a second account. When creating that second account, you have the possibility of making it an administrator account. Making the account an administrator account means the user will be added to a group called 'wheel', therefore authorizing the account you just created to use 'sudo'. Prefixing any commands with 'sudo' is the equivalent of 'Run as administrator' on a Windows OS. If you don't add 'sudo' in front of the commands you're running they're run as a regular user (the user you're logged in as).
    2017 goals: Security+ (working on it)
    2018 goals: eJPT, CCNA R&S, RHCSA v7,
    2019 goals: RHCE v7, CCNA CyberOps, CSA+
    ????: OSCP || CISSP
    Reply With Quote Quote  

+ Reply to Thread

Social Networking & Bookmarks