Howto change root password on Centos 6.3 Redhat RHEL Fedora 17

Howto change root password on Centos 6.3 Redhat RHEL Fedora 17

1. Check encrypted password for our server

[root@Centos6 ~]# cat /etc/shadow
root:$1$aAIoixJm$Py0fDj1Rl2NnCXAjqj5f/0:15679:0:99999:7:::
bin:*:15513:0:99999:7:::
daemon:*:15513:0:99999:7:::
adm:*:15513:0:99999:7:::
lp:*:15513:0:99999:7:::
sync:*:15513:0:99999:7:::
shutdown:*:15513:0:99999:7:::
halt:*:15513:0:99999:7:::
mail:*:15513:0:99999:7:::
uucp:*:15513:0:99999:7:::
operator:*:15513:0:99999:7:::
games:*:15513:0:99999:7:::
gopher:*:15513:0:99999:7:::
ftp:*:15513:0:99999:7:::
nobody:*:15513:0:99999:7:::
dbus:!!:15658::::::
usbmuxd:!!:15658::::::
avahi-autoipd:!!:15658::::::
vcsa:!!:15658::::::
rtkit:!!:15658::::::
ntp:!!:15658::::::
avahi:!!:15658::::::
pulse:!!:15658::::::
abrt:!!:15658::::::
saslauth:!!:15658::::::
postfix:!!:15658::::::
haldaemon:!!:15658::::::
apache:!!:15658::::::

2. Change root password

[root@Centos6 ~]# passwd root
Changing password for user root.
New password:
Retype new password:
passwd: all authentication tokens updated successfully.
[root@Centos6 ~]#

3. Re-checked encrypted password for root

[root@Centos6 ~]# cat /etc/shadow
root:$1$mX1OeigV$yCTw15smExTKpC5utAynv1:15713:0:99999:7:::
bin:*:15513:0:99999:7:::
daemon:*:15513:0:99999:7:::
adm:*:15513:0:99999:7:::
lp:*:15513:0:99999:7:::
sync:*:15513:0:99999:7:::
shutdown:*:15513:0:99999:7:::
halt:*:15513:0:99999:7:::
mail:*:15513:0:99999:7:::
uucp:*:15513:0:99999:7:::
operator:*:15513:0:99999:7:::
games:*:15513:0:99999:7:::
gopher:*:15513:0:99999:7:::
ftp:*:15513:0:99999:7:::
nobody:*:15513:0:99999:7:::
dbus:!!:15658::::::
usbmuxd:!!:15658::::::
avahi-autoipd:!!:15658::::::
vcsa:!!:15658::::::
rtkit:!!:15658::::::
ntp:!!:15658::::::
avahi:!!:15658::::::
pulse:!!:15658::::::
abrt:!!:15658::::::
saslauth:!!:15658::::::
postfix:!!:15658::::::
haldaemon:!!:15658::::::
apache:!!:15658::::::

That’s all. Thanks for using IThelpblog.com.

 

Leave a reply

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>