agi-bin

For questions during install

agi-bin

Postby scrizo » Thu Oct 15, 2015 12:26 pm

What happens when a permission denied error occurs on the agi-bin directory yet the folder perms are set as 777 the only issue I can see is that asterisk is running as root executing an agi-bin script owned by asterisk but that shouldn't matter in Linux as the root user can execute any file that isn't owned by it because of it being UID 0

as you can see from this link the error on line 27

http://pastebin.com/fD5yjEQ9

yet here are the folder permissions for it

[root@rrsi-o1 ~]# getfacl /var/
getfacl: Removing leading '/' from absolute path names
# file: var/
# owner: root
# group: root
user::rwx
group::r-x
other::r-x

[root@rrsi-o1 ~]# getfacl /var/lib
getfacl: Removing leading '/' from absolute path names
# file: var/lib
# owner: root
# group: root
user::rwx
group::r-x
other::r-x

[root@rrsi-o1 ~]# getfacl /var/lib/asterisk/
getfacl: Removing leading '/' from absolute path names
# file: var/lib/asterisk/
# owner: asterisk
# group: asterisk
user::rwx
group::r-x
other::r-x

[root@rrsi-o1 ~]# getfacl /var/lib/asterisk/agi-bin/
getfacl: Removing leading '/' from absolute path names
# file: var/lib/asterisk/agi-bin/
# owner: asterisk
# group: asterisk
user::rwx
group::r-x
other::---

[root@rrsi-o1 ~]# getfacl /var/lib/asterisk/agi-bin/agi-OSDagent_conf.agi
getfacl: Removing leading '/' from absolute path names
# file: var/lib/asterisk/agi-bin/agi-OSDagent_conf.agi
# owner: asterisk
# group: asterisk
user::rwx
group::rwx
other::rwx

[root@rrsi-o1 ~]# pidof asterisk
23144
[root@rrsi-o1 ~]# ps -fe |grep 23144
root 23144 23143 1 Jun25 ? 1-04:09:25 /usr/sbin/asterisk -f

I will assume asterisk is run as the root user

OCTAL PERMISSION FOR /var is as follows
[root@rrsi-o1 ~]# stat -c "%a %n" /var/
755 /var/

[root@rrsi-o1 ~]# stat -c "%a %n" /var/lib
755 /var/lib

[root@rrsi-o1 ~]# stat -c "%a %n" /var/lib/asterisk
755 /var/lib/asterisk

[root@rrsi-o1 ~]# stat -c "%a %n" /var/lib/asterisk/agi-bin/
750 /var/lib/asterisk/agi-bin/

[root@rrsi-o1 ~]# stat -c "%a %n" /var/lib/asterisk/agi-bin/agi-OSDagent_conf.agi
777 /var/lib/asterisk/agi-bin/agi-OSDagent_conf.agi
scrizo
 
Posts: 11
Joined: Fri Jun 12, 2015 1:26 pm

Return to Installation

Who is online

Users browsing this forum: No registered users and 1 guest

cron