mindia mindia - 26 days ago 7
Linux Question

Binary file Permission denied

I work with asterisk 11.2.1 and I try to use command "asterisk" but I have the following error

[root@ss sbin]# ls -l | grep asterisk
-rw-r--r--. 1 root root 23642286 Aug 13 08:37 asterisk
-rw-r--r--. 1 root root 23642286 Aug 13 08:37 rasterisk
[root@ss sbin]# asterisk
-bash: /usr/sbin/asterisk: Permission denied
[root@redsky sbin]#


Why Permission denied?

Answer Source

Note that these binaries have no execution mode:

[root@ss sbin]# ls -l  | grep asterisk
-rw-r--r--. 1 root root     23642286 Aug 13 08:37 asterisk
-rw-r--r--. 1 root root     23642286 Aug 13 08:37 rasterisk
   ^
   missing "x"

chmod +x askterisk should solve this execution problem.