Individuals with poor dietary habits, alcoholics, and those living in poverty with limited access to diverse foods are at higher risk of developing pellagra.