Bug 1312709

Summary: ejabberd does not start with permission denied
Product: [Fedora] Fedora Reporter: Randy Barlow <rbarlow>
Component: ejabberdAssignee: Randy Barlow <rbarlow>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: high Docs Contact:
Priority: unspecified    
Version: 24CC: erlang, jeremy, lemenkov, martin, rbarlow
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: ejabberd-16.01-3.fc24 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-02-29 13:29:11 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Randy Barlow 2016-02-29 02:00:37 UTC
This is very likely my fault as I adjusted some of the patches that changed default permissions in the upgrade from 14.07 to 16.01. It seems that ejabberd does not start in Fedora 24 (and very likely Rawhide as well):

$ sudo -u ejabberd /usr/bin/bash /usr/bin/ejabberdctl --config /etc/ejabberd/ejabberd.yml --ctl-config /etc/ejabberd/ejabberdctl.cfg --logs "/var/log/ejabberd" --spool "/var/lib/ejabberd" start
/usr/bin/bash: /usr/bin/ejabberdctl: Permission denied
$ ls -lah /usr/bin/ejabberdctl 
-r-xr-x---. 1 root root 16K Feb 19 23:06 /usr/bin/ejabberdctl

The problem seems to be that the ejabberd user does not have permission to execute ejabberdctl.

Comment 1 Randy Barlow 2016-02-29 03:23:53 UTC
This is what that executable looks like on my F22 host:

$ ls -lah /usr/bin/ejabberdctl 
-rwxr-xr-x. 1 root root 13K Nov 14  2014 /usr/bin/ejabberdctl

I will fix this by restoring the permissions to those values.