Here are sebaceous glands, located next to a hair shaft (forming the pilosebaceous unit), that produce the oily sebum that lubricates the hair and skin to prevent dryness. Excessive sebum production affects some adolescents, particularly males, and predisposes to acne.