[COOK-2496] - set rootpw attribute correctly