Have you got them checked from a surgeon if they are hemorrhoids or boils. Boils are caused by infection of the hair follicle by staph aureus. Hair follicles that are blocked by greasy creams, petroleum jelly, or similar products are more vulnerable to infection. Bacterial skin infections can be spread by shared cosmetics or washcloths, close human contact, or by contact with pus from a boil or carbuncle. Treatment includes antibiotics and incision and drainage and do not touch or pick them up. Also apply warm compresses on the lumps.
It is very difficult to precisely confirm a diagnosis without examination and investigations and the answer is based on the medical information provided. For exact diagnosis, you are requested to consult your doctor. I sincerely hope that helps. Take care and please do keep me posted on how you are doing.