So basically i made a simple script in c that prints out environmental user variable, i compiled it and it worked just fine, i tried to do “su -l user2(account i made) /home/user1/Projects/envvar” i made sure that all these directories and the file itself has proper permissions set, but when i did this command it said that i cant execute a binary file, it didnt give me a reason for it and didnt say that i dont have permissiom to.
sorry i didnt paste error code here but im driving in a car rn and dont have my laptop close to me so i can post this normally
linux doesnt let me execute a binary file, i have no idea what should i do…
typhrenn is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.