>How do you go about buying a port?<
As I read the article, Obama signed a 40 year contract with the Chinese to control the port.
When Carter gave away the Panama Canal, I believe Panama sold the operations to Chinese company Hutchinson Wampoa.