Mr. Laser Beam wrote:
It was my understanding that guards, who are assigned to guard a certain thing or person, have pretty much absolute authority over anyone trying to intrude upon what's guarded. Even if the Admiral of the Fleet showed up and demanded access to the prisoner, the guards wouldn't let them in without proper ID and orders.
I understand the point you're making, but that still doesn't address the issue of why they were copping an attitude about it. Both Kirk and Sulu presented valid ID when entering the facility. Authority or no, one need not act like a jerk merely to prove that he's master of his domain.