When you're legally allowed to walk across someone's private land, you have a right of way. Often, beaches are accessible to the public via a right of way through someone's property.
Use the legal phrase right of way whether you're talking about the physical path or route that people are permitted to use, or their right to use that path. When you're driving, right of way refers to one driver's right to proceed first, or a pedestrian's right to use a crosswalk, for example. At a four-way stop, the driver who stops first has the right of way, so they also get to drive through the intersection first.