The Great Impostor is a 1961 movie based on the true story of an impostor named Ferdinand Waldo Demara. The film is loosely based on Robert Crichton’s 1959 biography of the same name, it stars Tony Curtis in the title role, and was directed by Robert Mulligan. The film only loosely follows Demara’s real-life exploits, and is much lighter in tone than the book on which it is based. Wiki
Based on a true story, a bright young man who hasn’t the patience for the normal way of advancement finds that people rarely question you if your papers are in order. He becomes a marine, a monk, a surgeon onboard a Canadian Warship, and a prison warden. IMDB