Ask Your Question

centos root password

asked 2015-07-14 08:46:24 -0500

busyboy gravatar image


is there any possible method to change or update the root password for centos6 QCOW2 image.

I'm able to login to the image using ssh key, but neither centos user's password nor root password work...any help

edit retag flag offensive close merge delete

2 answers

Sort by ยป oldest newest most voted

answered 2015-07-14 08:56:40 -0500

Vinoth gravatar image

Set password for user:

#passwd root



Then enable the root login & password auth in /etc/ssh/sshd_config file by uncommenting this 2 lines:

PermitRootLogin yes

PasswordAuthentication yes

edit flag offensive delete link more

answered 2015-07-14 11:28:56 -0500

busyboy gravatar image


how a user can change root password...

I'm looking for changing the password for centos vm inside openstack

edit flag offensive delete link more

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower


Asked: 2015-07-14 08:46:24 -0500

Seen: 982 times

Last updated: Jul 14 '15