As you stroll around ramparts or along the streets of small towns, you will find that the local people will acknowledge you with a Madame or Monsieur and a nod of the head.
Locals don't want to greet tourists and only do so to be polite.