President Barack Obama is directing the government and companies to share more information about cybersecurity threats.