Mailing List Archive

agent corrupts /etc/shadow in CentOS 6
I'm working on an issue we noticed in openstack where setting the root password on a CentOS 6 image through the XenAPI would corrupt the guest image's /etc/shadow file.

1. set the root password through XenAPI
2. log in to the account
3. `passwd` -- you should get an error.

To fix you can `rm /etc/shadow; pwconv`

I've tested against an Ubuntu XCP image and everything is fine there… seems to only affect CentOS 6
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
http://lists.xen.org/xen-devel
Re: agent corrupts /etc/shadow in CentOS 6 [ In reply to ]
CCing xen-api list where XenAPI/XCP development happens.

On Fri, 2012-10-12 at 16:24 +0100, James King wrote:
> I'm working on an issue we noticed in openstack where setting the root password on a CentOS 6 image through the XenAPI would corrupt the guest image's /etc/shadow file.
>
> 1. set the root password through XenAPI
> 2. log in to the account
> 3. `passwd` -- you should get an error.
>
> To fix you can `rm /etc/shadow; pwconv`
>
> I've tested against an Ubuntu XCP image and everything is fine there… seems to only affect CentOS 6
> _______________________________________________
> Xen-devel mailing list
> Xen-devel@lists.xen.org
> http://lists.xen.org/xen-devel



_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
http://lists.xen.org/xen-devel