The master of a ship is appointed by the owner, and holds during his pleasure.

SOURCE: CC § 2034.