The skin contains four types of glands: Simple branched acinar glands connected to hair follicles, modified sweat glands located in the ear canal, more common, distributed throughout most of the body (especially on forehead, palms, and soles), not present in margin of lips, nail beds of fingers toes, glans penis/clitoris, labia majora, or eardrums, and their main function is to regulate body temperature.