I'm not sure if you mean the Mamluk ruling military class only, or the people of Egypt as a whole. The Mamluks of course unsuccessfully fought Napoleon, however Napoleon tried to cast himself as the liberator of Egypt from oppressive Ottoman and Mamluk rule. This attempt doesn't seem to have been successful. There will of course have been a wide range of reactions in Egypt to Napoleon's invasion, however one interesting element was Napoleon's use of Copts and other Christians in his administration, and the local reaction to this. The following is taken from Bernard Lewis' 'The Jews of Islam' (1984, Princeton University Press), p. 64-65, and indicates that for this Egyptian contemporary, admiration of the French commitment to justice was countered by opposition to their policy of implementing legal equality between Muslims and people of other religions, and perhaps in a practical sense, showing favour to them:
"Bonaparte's expedition to Egypt drew extensively on the services of Copts and other Christians in its administration. The sentiments of a Muslim observer at the time [of Napoleonic rule] are vividly expressed in the writings of the Egyptian historian al-Jabarti, perhaps the last of the great Islamic historians in the classical mold. A member by background and education of the ulema class, al-Jabarti was no blind fanatic, no indiscriminate hater of things non-Muslim. He recognized some of the merits of French rule, and comments particularly on French commitment to justice, one of the qualities most esteemed in the Muslim scale of political values. He did not, however, appreciate their emancipation of the non-Muslim inhabitants of Egypt, in what amounted to a termination of dhimma. Al-Jabarti comments repeatedly and bitterly on the employment of Copts and other dhimmis by the French. He was particularly offended by their wearing fine clothes, their bearing arms, contrary to old established usage, their exercising authority over the affairs and persons of the Muslims, and generally their acting in a way that seemed to him a reversal of the proper order of affairs as established by the law of God. Al-Jabarti was a fair-minded observer who found much to admire in the French and much to criticize in the Ottomans. Nevertheless, he warmly welcomed the return of Ottoman authority and with it the old order involving, in particular, the restoration of the dhimma and the restrictions it imposed on his Coptic compatriots. 73"