The county commission has charge of the courthouse and the sheriff, at the direction of the county commission, must prevent trespasses, and keep out intruders.