Hello,
Two possibilities are there for your symptoms.First of all,stress or hormonal changes may lead to excess oil produced by the oil glands in your scalp. This causes the harmless bacteria that live in the scalp to proliferate and feed off the oil, which produces the odor.
Second possibility is of a fungal infection causing tinea capitis.It is contagious and can spread direct contact with someone who has the condition, or if you touch contaminated items such as combs, hats, clothing, or similar surfaces. Diagnosis is by clinical examination of the scalp as well as a skin lesion biopsy with microscopic examination.Anti-fungal medications, taken by mouth, are used to treat the infection.
It is important to keep the area clean. A medicated shampoo, such as one containing selenium sulfide like selsen may also help. 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.
Someone help me, I have the same problem except it smells really really bad. I've been struggling with this for at least 3 years now and I swear it is so embarrassing. I've tried some eucalyptus mint shampoo and it didn't work. I wash my hair everyday and even when I get out, my scalp just stinks. It's even more embarrassing at school because you can literally smell it even if you're not by me. Please I need help I think I have a fungus infection on my scalp and I just want to be confident for once again. Ugh why is this a thing?