Rail stanchions either have a threaded stud with a nut and washer from below or a pad with screws from above
On smaller boats, the whole cap and deck are usually rigged before the cap is glued n screwed in place. This includes hand rails.
If you do not have access, you may have to cut access...