How to hack into a deceased person's Mac that is still running?
If your friend have something like family documents which can prove the relationship between him and his passed one, then try to contact Apple for solution. They do solve sort of situations like this :)