failed Operation not permitted

Use this forum for questions regarding installation, upgrading and configuration of OpenEMM

Moderator: moderator

leemorrison
Posts: 3
Joined: Wed May 23, 2012 7:55 pm

failed Operation not permitted

Post by leemorrison »

I can't get openemm.sh to work - mailer.sh start fails - please see the message below. Is there something I need to do so that the openemm user can start sendmail?

[openemm@p6zone2 ~]$ /home/openemm/bin/mailer.sh start
Stopping obsolete sendmail processes: -15:8176[failed Operation not permitted] -15:8185[failed Operation not permitted] -9:8176[failed Operation not permitted] -9:8185[failed Operation not permitted] done.
Starting sendmails: listener admin queue WARNING: Ignoring submission mode -N option (not in submission mode)
Permission denied (real uid not trusted)
mail queue WARNING: Ignoring submission mode -N option (not in submission mode)
Permission denied (real uid not trusted)
done.
maschoff
Site Admin
Posts: 2608
Joined: Thu Aug 03, 2006 10:20 am
Location: Munich, Germany
Contact:

Re: failed Operation not permitted

Post by maschoff »

My hunch is that your file permissions are not ok. Did you unpack the tar ball with option p?
OpenEMM Maintainer
leemorrison
Posts: 3
Joined: Wed May 23, 2012 7:55 pm

Re: failed Operation not permitted

Post by leemorrison »

Hi - yes I did use tar xvfpz... However, since I'm on a 64 bit CentOS server, I needed to download the src files and then compile/make smctrl. I replaced the smctrl executable shipped in the bin download and was successfully able to get around a corrupt lib problem (probably accessing 64 bit libraries as a 32 bit process) that I had originally running openemm.sh.

I understand that I must run openemm.sh as the openemm user but, then run into the permissions problems documented. If I isolate smctrl and run as root, the process runs fine:
[root@p6zone2 bin]# /home/openemm/bin/smctrl service stop
Shutting down sm-client: [ OK ]
Shutting down sendmail: [ OK ]
[root@p6zone2 bin]# /home/openemm/bin/smctrl service start
Starting sendmail: [ OK ]
Starting sm-client: [ OK ]
[root@p6zone2 bin]#

If I run the same commands as the openemm user nothing is returned and sendmail doesn't start...
[root@p6zone2 bin]# /home/openemm/bin/smctrl service status
sendmail (pid 2436) is running...
sm-client (pid 2445) is running...
[root@p6zone2 bin]# /home/openemm/bin/smctrl service stop
Shutting down sm-client: [ OK ]
Shutting down sendmail: [ OK ]
[root@p6zone2 bin]# /home/openemm/bin/smctrl service status
sendmail is stopped
sm-client is stopped
[root@p6zone2 bin]# su - openemm
[openemm@p6zone2 ~]$ /home/openemm/bin/smctrl service start
[openemm@p6zone2 ~]$ exit
logout
[root@p6zone2 bin]# /home/openemm/bin/smctrl service status
sendmail is stopped
sm-client is stopped
[root@p6zone2 bin]#

Thank you for your assistance.
maschoff
Site Admin
Posts: 2608
Joined: Thu Aug 03, 2006 10:20 am
Location: Munich, Germany
Contact:

Re: failed Operation not permitted

Post by maschoff »

If your problem is that user openemm can not start Sendmail maybe there is a security layer in between like SELinux or AppArmour, preventing Sendmail from launching.
OpenEMM Maintainer
Post Reply