are sebaceous glands in the dermis or epidermis
Dermis The dermis or corium is a layer of skin between the epidermis (with which it makes up the cutis) and subcutaneous tissues, that primarily consists of dense irregular connective tissue and cushions the body from stress and strain. It is divided into two layers, the superficial area adjacent to the epidermis called the papillary region and a deep thicker area known as the reticular dermis.[1] The dermis is tightly connected to the epidermis through a basement membrane. Structural components of the dermis are collagen, elastic fibers, and extrafibrillar matrix.[2] It also contains mechanoreceptors that provide the sense of touch and thermoreceptors that provide the sense of heat. In addition, hair follicles, sweat glands, sebaceous glands, apocrine glands, lymphatic vessels and blood vessels are present in the dermis. Those blood vessels provide nourishment and waste removal for both dermal and epidermal cells.
Eccrine sweat gland Eccrine glands (/ˈɛkrən, -ˌkraɪn, -ˌkriːn/; from ekkrinein "secrete";[3] sometimes called merocrine glands) are the major sweat glands of the human body,[4] found in virtually all skin, with the highest density in palms and soles, then on the head, but much less on the trunk and the extremities. In lower mammals, they are relatively sparse, being found mainly on hairless areas such as foot pads. They reach their peak of development in humans, where they may number 200–400/cm² of skin surface.[5][6] They produce a clear, odorless substance, sweat, consisting primarily of water.