Questioner:

What is the ruling on greeting the one praying and how does the one praying reply?

Shaykh Ṣāliḥ ibn Fawzān al-Fawzān

There is no problem in doing so. The one praying should respond with a hand gesture.