All perfect praise be to Allah, The Lord of the worlds. I testify that there is none worthy of worship except Allah and that Muhammad is His slave and Messenger.
Many scholars are of the view that it is forbidden for a man to greet young non-Mahram women with the Salaam because of the fear of being tempted by them, but not women who are of advanced age.
An-Nawawi said:
“With regard to a non-Mahram … if she is an old woman who is not desired, then it is recommended for him to say Salaam to her (greet her), and it is recommended for her to say Salaam to him. If either of them greets the other with Salaam, then it is an obligation on the other to respond. But if it is a young woman or an old woman who is desired, then a non-Mahram man does not greet her with Salaam, and she does not greet him either. If either of them greets the other, they do not deserve to be responded to.”
Some other scholars permitted this in regard to all women, provided that one is safe from being tempted by them.
Ibn Battaal quoting Al-Muhallab said, “Men greeting women with Salaam and vice-versa is permissible if there is no fear of temptation.”
Ibn Hajar mentioned this in Fat-h Al-Baari.
Accordingly, if you are safe from being tempted by them, then there is no harm on you in greeting them.
Allah knows best.