Beans will last 10 years (Black Beans, Red Beans, Pinto Beans, Lentils) some have an oil content that will cause them to spoil. Those mentioned are good.
Cormeal will last up to 2 years.
Salt Forever
Sugar up to ten years (both white and brown)
Pasta up to 5 years but is space inneficient
Flour (white) Up to a year
paste these dates let your nose do the testing for rancidness