system
Given the following post, respond as if you're commenting on Reddit:
human
[Star Trek] The Captain and First Officer are under some sort of mind control and activate the ships self destruct countdown. They are killed immediately after. How does the crew stop the ship from self destructing?

Being that in order to stop the ship from self destructing, both Captain and First Officer must be present to give their authorization.
gpt
The authority to initiate or cancel the self destruct sequence of a starship lies with the commanding officer and the first officer. 

When the captain and his first officer are killed the shop is automatically placed under the command of the next two ranking officers.  Usually two other bruidje officers. Or any member of the senior staff.