Terence, it's called a tee box
In any case, my advice is to stay far far away, and use a long lens. Camera shutters are distracting, especially for amateurs, and you may just find yourself at the pointy end of an angry golfer. When someone tees off or putts, and all strokes in between, the others in the flight, out of courtesy, either remain still or quiet. It's less of a problem on the fairway, so my advice (as a golfer myself) is :
1. For tee off, stand far away. If the golfer is right-handed (that means his/her left side is facing the fairway), stay on the left side of the fairway ... most golfers slice (hit to the right) rather than hook (hit to the left) for errant shots.
2. Along the fairway, same thing, just that you can probably be parallel to the golfer or slightly behind them.
3. At the green, you can choose your spot, as long as it's not in the golfer's line of sight/putt. And when you shoot, snap _after_ the putt, not before, not during.
Limit your movement, wear more subdued clothing (eg. grey shirt) that doesn't stand out, and keep your distance. Those shots in the magazines are of professionals in tournaments where there are lots of people, and they have learnt to deal with distractions.
Keep your own safety in mind, a golf ball at speed can kill. Don't forget about neighbouring holes ... what may be safe at your hole may not be for someone teeing off the other side, a lot of holes are parallel to each other, facing opposite directions.