The state and all persons claiming under it shall have the right to enter upon such lands and to prospect for, mine, sell, and remove such coal, ores, asphaltum, metals, minerals, and other metallic and mineral products and for such purpose to construct all necessary roads, buildings, and improvements thereon, including machinery for mining or removing such coal, ores, asphaltum, metals, minerals, and other metallic and mineral products in such lands.
SDCL 5-7-4