I just want to run a binary file, but when i try to do his using my terminal,its acting weird and i can't figure out what's the problem.
rohan@rohan:~$ cd Desktop/
rohan@rohan:~/Desktop$ ls
chal challenge __MACOSX
rohan@rohan:~/Desktop$ cd challenge
rohan@rohan:~/Desktop/challenge$ ls
binary1 binary2 binary3
rohan@rohan:~/Desktop/challenge$ ./binary1
bash: ./binary1: Permission denied
rohan@rohan:~/Desktop/challenge$ sudo ./binary1
[sudo] password for rohan:
sudo: ./binary1: command not found
rohan@rohan:~/Desktop/challenge$
I also tried giving it permissions but it still can't execute it. Any help would be appreciated. thank you.
Also , these are the details of the files, My system is a 64-bit, ubuntu 16.04LTS, what would i need to get and how to run this file.
file /home/rohan/Desktop/challenge/binary1
type EXEC (Executable file)
pic false
has_va true
root elf
class ELF32
lang c
arch x86
bits 32
machine Intel 80386
os linux
subsys linux
endian little
strip false
static false
linenum true
lsyms true
relocs true
rpath NONE