How Do I Change the Password of the Root User in the Linux Operating System
Question
How do I change the password of the root user in the Linux operating system?
Answer
- Log in to the Linux operating system as the root user.
Remotely log in to the server as the ossuser and switch to the root user if the Linux is hardened.
- Run the following commands to change the password of the root user.
# passwd root
New Password: Enter a new password of the root user Reenter New Password: Enter the new password again