So I suppose you don't know how the dog you mentioned previously was treated or trained as a puppy?
My bitch ridgeback grew up with us from about 6 weeks old. A gift to my wife, we took her in as a bag of bones but she turned out to be a good looking girl and was actually full (Thai) pedigree, which can make a difference. She was trained and learnt good behaviour but seemed to know the right thing to do in any case. Fun, loyal and very protective but would always give visitors a chance to show signs of friendliness, before outwardly showing any suspicion or aggressiveness. Thai people seem to know and respect this breed and most potential intruders or baddies probably just say "not worth it" and move on.
It's always better if you bring a dog into the home as early as possible. Then be firm but give the animal the best life you can afford, plus plenty of love - then they are not likely to bite you.