In managing the public lands, the Secretary shall, subject to this Act and other applicable law and under such terms and conditions as are consistent with such law, regulate, through easements, permits, leases, licenses, published rules, or other instruments as the Secretary deems appropriate, the use, occupancy, and development of the public lands, including, but not limited to, long-term leases to permit individuals to utilize public lands for habitation, cultivation, and the development of small trade or manufacturing concerns: Provided, That unless otherwise provided for by law, the Secretary may permit Federal departments and agencies to use, occupy, and develop public lands only through rights-of-way under section
of this title, withdrawals under section
of this title, and, where the proposed use and development are similar or closely related to the programs of the Secretary for the public lands involved, cooperative agreements under section
of this title: Provided further, That nothing in this Act shall be construed as authorizing the Secretary concerned to require Federal permits to hunt and fish on public lands or on lands in the National Forest System and adjacent waters or as enlarging or diminishing the responsibility and authority of the States for management of fish and resident wildlife. However, the Secretary concerned may designate areas of public land and of lands in the National Forest System where, and establish periods when, no hunting or fishing will be permitted for reasons of public safety, administration, or compliance with provisions of applicable law. Except in emergencies, any regulations of the Secretary concerned relating to hunting and fishing pursuant to this section shall be put into effect only after consultation with the appropriate State fish and game department. Nothing in this Act shall modify or change any provision of Federal law relating to migratory birds or to endangered or threatened species. Except as provided in section
, and subsection (f) ofsection
of this title and in the last sentence of this paragraph, no provision of this section or any other section of this Act shall in any way amend the Mining Law of 1872 or impair the rights of any locators or claims under that Act, including, but not limited to, rights of ingress and egress. In managing the public lands the Secretary shall, by regulation or otherwise, take any action necessary to prevent unnecessary or undue degradation of the lands.