The present invention relates to the use, as an antidandruff agent, of a compound of formula: in which: R1 represents a hydrogen atom or a hydrocarbon-based radical; R′ represents a C1-C18 hydrocarbon-based radical, optionally substituted with a hydroxyl group; C—X represents C═O or CH—OH.