A shack is a simple building that's often temporary or small.
You might think of a shack as a tiny house or cabin, but it can also be an outbuilding like a storage shed or even just a wooden platform. For example, on a beach you might see people living in shacks that were built from driftwood and other materials to protect them from the wind and rain. These kinds of shacks are usually made quickly and aren't meant to last forever.
A crude, roughly built hut or cabin.
To live (in or with); to shack up.
