Some of these problems may also be related to bacterial infection. In most cases, bacterial skin infections are caused by another skin problem where the hair follicles have been irritated. Generally the infection is treated with an antibiotic, and depending on what the other skin problem is, treatment may call for more medication, a medicated shampoo, or something else.