A quartermaster is an officer who is charged with organizing personnel and materials.
Since the 22nd century, Earth and Starfleet starships have all carried quartermasters. They were assigned to deal with the assignment of quarters and other minor issues aboard ship. (ENT episode: "Civilization"; VOY short story: "Command Code")
In 2373, Worf relayed a message from the quartermaster to Benjamin Sisko and Jadzia Dax that Starfleet was soon to change their duty uniforms. (TNG - Slings and Arrows eBook: Enterprises of Great Pitch and Moment)