Acting captain

The position of acting captain was bestowed upon an officer or another individual aboard a starship when the ship's regular commanding officer was unable to command for an extended period of time. This person was usually the first officer, and then continued down the ranks until someone was both physically and psychologically able to command.