Of seamen quartered in the forecastle (6,3,4)
I believe the answer is:
before the mast
(Other definitions for before the mast that I've seen before include "(Working) as ordinary seaman" , "as seamen" , "Serving as a seaman in a sailing ship" , "Serving as a common sailor" .)