If you create a character "based" on a person, a real live person, do you need to have their permission? Meaning, should you contact them and say "While this person is not you, I have used some of your life to base this character on."

Or

Do I give an acknowledgement and give credit to what I wrote?