Vegetable oils represent an important element in protecting a sustainable environment. The pursuit of environmentally friendly solutions and the ever-increasing costs of synthetic oil production are increasing the interest in natural vegetable oils. This paper presents and discusses the possibilities of using the oils obtained from coconuts (Cocos nucifera L.) harvested in Indonesia (North Sumatra region), with three maturity levels (green, yellow, and brown), as lubricants. The specific mechanical energy for linear pressing of the green, yellow, and brown types was 22.3, 20.7, and 18.5 J·goil−1, respectively. The water content of the oils obtained from the green, yellow, and brown types was 1786, 2033, and 1902 mg H2O·g−1, respectively. The mathematical models for linear pressing were established. The sizes of the wear area for the green, yellow, and brown types were 25.7, 24.4, and 34.3 mm2, respectively. The UV–visible spectral curves of the oils, in the range of 180–320 nm, were determined. The results of the lubrication properties of the Reichert test showed that better lubrication properties were exhibited by the green and yellow types, which are comparable to the lubricating properties of engine oils. The results from the SEM images also showed a better structure of the worn surface and fewer traces of abrasive wear.