Hopes that Greece will get a second bailout and avoid a devastating debt default rose today.

Greek Prime Minister George Papandreou replaced his finance minister in a broad cabinet reshuffle that won strong support from markets, optimistic that crucial austerity measures will now be passed.

After two days of political chaos that threatened to bring down the government, Germany also appeared ready to provide billions more in aid to carry the debt-ridden country through 2014, after Chancellor Angela Merkel indicated that the private sector would not be forced to share in the pain of a second bailout.

At one point on Wednesday a debt default seemed to be just weeks, if not days, away.

Greek shares are up over 5 %, while the euro has recovered much of the ground lost since Wednesday.

Investors have clearly breathed a sigh of relief that Papandreou's reshuffle will be enough to get his party's deputies to back fresh austerity proposals.

Papandreou has struggled to garner support for a crucial new package of 28 billion euro (£24 billion) in spending cuts and tax hikes demanded by the EU and IMF. The package must be voted through parliament if the country is to continue receiving funds from its bailout.

European Commission President Jose Manuel Barroso reminded Greece's new ministers to make good on their country's commitments.

"If Greece does its part, I think the European Union also has to do its part because it is in our joint, it is in our common interest," he said in a statement. "It is critically important that the signals coming from Greece are clear about that."

By promoting Evangelos Venizelos, who challenged Papandreou for the party leadership four years ago, to the finance ministry, the Prime Minister will hope he met demands of his deputies.

On Thursday, at a dramatic seven-hour meeting Socialist lawmakers demanded that the prime minister remove inexperienced loyalists from the Cabinet and replace them with more experienced party veterans, mostly in their late-50s.

Venizelos, a 57-year-old constitutional law professor, is considered Papandreou's main internal Socialist rival.

A veteran of several ministries, he handled the run-up to Greece's hosting of the Olympic Games in 2004 as culture minister, and has also held the justice, development and transport portfolios in the past.

He replaces George Papaconstantinou, who became broadly unpopular as he imposed budget cuts and tax hikes as part of last year's 110 billion euro (£96 billion) international bailout deal.

Government portfolios were also redistributed to address demands for faster reform from Greece's debt monitors at the European Union and International Monetary Fund. A new ministry for administrative reform was created to help scale back the country's bloated public sector.

Other party heavyweights were also promoted at the expense of Papandreou loyalists in a bid to calm internal dissent and push through the new five-year austerity plan, due to be voted on in Parliament this month.

Dimitris Droutsas, a close friend of Papandreou, lost the foreign affairs portfolio - and any position in the new government, as did Tina Birbili, the outgoing environment minister. Droutsas was replaced by Stavros Lambrinidis, who heads Greece's Socialists in the European Parliament.

The new cabinet was sworn in shortly after being named, and the new ministers were heading straight into a cabinet meeting with the prime minister.

Venizelos' immediate task as finance minister is to get on top of budget slippages and setbacks in cost-cutting reforms as well as pushing ahead with a massive privatisation drive worth 50 billion euro (£44 billion). At the same time, he will have to negotiate a vital second bailout package with Greece's frustrated international creditors.

All this though hinges on whether Papandreou's new government wins a confidence vote in Parliament, likely in the early part of next week.

Socialist dissenters have given no indication they will vote against the government in that vote.

If the government clears Tuesday's hurdle, then there appears to be a greater chance that Greece will get a second bailout after Germany's Merkel agreed with French President Nicolas Sarkozy that private investors should be part of the solution but that their participation had to be on a "voluntary" basis.

That was interpreted as somewhat of a climbdown by Merkel.

"As of last night, there were two main obstacles to sealing a package for Greece: disagreement among European policymakers, and Greek politics," said Nicola Mai, an analyst at JPMorgan. "Following a meeting between Merkel and Sarkozy this morning, the first of these two obstacles appears to have been lifted."

Should the pieces all fall into place, the government has promised to slash its bloated public service by 150,000 people by 2015 - two years beyond its current term - and effectively end government jobs for life. The privatisation programme will also have to kick up a gear or two, particularly in the energy sector, which will now be overseen by former finance chief Papaconstantinou.

Sign up to our free newsletters

Get the best updates straight to your inbox:
Please select at least one mailing list.

You can unsubscribe at any time by clicking the link in the footer of our emails. We use Mailchimp as our marketing platform. By subscribing, you acknowledge that your information will be transferred to Mailchimp for processing.