Succulents and cacti are killed by wet compost more reliably than by anything else, and the usual advice is to water carefully. Careful watering helps. Getting the drainage right helps far more, because it converts an over-generous watering from a fatal mistake into a survivable one.
The mix
Ordinary multipurpose compost holds far too much water for these plants. Bagged cactus compost is better and is often still too retentive on its own.
A reliable mix is roughly one part compost to one part coarse mineral material – grit, pumice or coarse sand – with some perlite. Some growers go further, to two parts mineral to one of organic, particularly for cacti and for plants overwintered cool.
The visual test is simple: a good succulent mix looks gritty and stays loose when you squeeze a damp handful, rather than forming a ball. If it holds its shape, it holds too much water.
The sand caveat
Use coarse horticultural sand or grit, never builder's or play sand. Fine sand fills the pores between compost particles rather than opening them up, and produces something closer to concrete than to a free-draining mix. This is a common and destructive mistake.
The pot
Terracotta is much the best choice. It is porous, so water evaporates through the walls as well as the surface, and a pot dries roughly twice as fast as the equivalent in plastic. That margin is exactly what these plants want.
Choose a pot only slightly larger than the plant. A succulent in an over-large pot sits surrounded by wet compost its roots cannot reach, which is the standard route to rot.
Shallow is better than deep for rosette succulents with shallow roots, provided the mix is coarse enough that the saturated zone at the base is not a large fraction of a shallow pot. For cacti with a taproot, deeper suits better.
Top dressing
A centimetre of grit or fine gravel on the surface is standard practice and does more than look tidy. It keeps the plant's base and lower leaves off wet compost, which prevents the rot that starts at soil level, and it reduces the fungus gnats that colonise a damp organic surface.
Watering into a well-drained pot
The whole point of the arrangement is that you can then water properly. Soak thoroughly until it runs from the base, let it drain completely, empty the saucer, and leave it until the compost is dry all the way through.
Small, cautious sips into a retentive mix keep the middle permanently damp and are considerably more dangerous than a generous soak into a gritty one.