Useful Commands For CentOS

This list will be updated frequently with usefull linux commands. Here we go with the first one.

1. Change password of Root Account via SSH in Centos

First, you need login SSH to your Linux server, then use command passwd to change password.

-bash-3.2# su – root  – you don’t need to do this if you already login ssh as root

Or you can simply launch they Putty and get into the terminal mode and type as follow
[root @ hostmayo.com ~]# passwd root

passwd root means change password for account name root
Changing password for user root.
New password:   (You should type your new password here)
Retype new password:   (You should retype your new password again)
passwd: all authentication tokens updated successfully.

0 0 votes
Article Rating
Subscribe
Notify of
guest
0 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments