cannot enable executable stack as shared object requires: Permission denied

Once you find error while executing any package on a system like “cannot enable executable stack as shared object requires: Permission denied” , it is probably because of SELinux is enforced/enabled on your system.
Solution :
1. Open file /etc/selinux/config
2. change “SELINUX=enforcing” to “SELINUX=disabled”
3. Reboot

if you want to disable SELinux temporarily then just execute bellow command
$ setenforce 0

Advertisements

Simple , Artistic , Meaningful

Tagged with: , , , , , , ,
Posted in Uncategorized
3 comments on “cannot enable executable stack as shared object requires: Permission denied
  1. Craig Ringer says:

    No no no, please keep it enabled, SELinux exists for good reasons. Just enable executable stack for the problem library/program. For Adobe Reader 9, for example, just:

    execstack -c /opt/Adobe/Reader9/Reader/intellinux/lib/libcrypto.so.0.9.8

    … then complain to the packager of the program to get them to fix it so it installs correctly in the first place.

    • samritmaity says:

      Yes I agree with Craig. I strongly recommend craig’s solution , if it works without disabling SELinux.
      thanks craig for the alternate solution.

  2. jam_mesh@yahoo.com says:

    I faced a similar problem after installing a 2D drawing soft ” draftsight ” on fedora14 . When I ran the soft I had the error: “…libDDKERNEL.so.1 ….cannot enable executable stack as shared object requires: Permission denied”.
    I just used:

    execstack -c /opt/dassault-systemes/draftsight/lib/libDDKERNEL.so.1

    of course in my case, drafsight has been installed in /opt folder through KPackageKit app

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: