During the Civil War naval officers were divided into four categories for purposes of berthing and messing aboard ship: cabin, wardroom, steerage, and forward officers. The captain had a private state room, and higher ranking officers had small cabins, while lower ranks only had individual lockers. This was the arrangement of the officers of the CSS Alabama.
Dickinson, Jack L., "Part 2: Officers and Crew" (2017). C.S.S. Alabama: An Illustrated History. 2.