Question: What is the ruling on those who work for the Egyptian Army as a source of their sustenance where the military rules and regulations force them to salute one another as the non-Muslims do or in a manner unlike that ordered by Allaah and His Prophet. Also, they have to salute the state flag and submit to the Military laws instead of the Sharee`ah (Islaamic law).
Answer: It is not permissible to salute the flag. Rather, you should abide by the Islaamic Sharee`ah and resort to it for judgment. It is not permissible for a Muslim to salute leaders and presidents like the non-Muslims do for there are some reports that prohibit imitating them and saluting leaders in such ways is a kind of extreme glorification to them… read more here.