How are sebaceous glands and sweat glands similar?

sweat glands secrete sweat (H20, ammonia, urea, salt) onto skin surface. Function: cooling+ evaporation and removal of wastes Sebaceous gland (oil glands) secrete oil onto hair and skin. Function: prevents drying and protects against bacteria.