Get your server issues fixed by our experts for a price starting at just 25 USD/Hour. Click here to register and open a ticket with us now!

Author Topic: FIX: cannot restore segment prot after reloc: Permission denied  (Read 5582 times)

0 Members and 1 Guest are viewing this topic.

sajugovind

  • Guest
FIX: cannot restore segment prot after reloc: Permission denied
« on: January 25, 2014, 03:40:36 pm »
While installation of any package or Starting any service on a RHEL or CentOS based Server you may receive following Error

Code: [Select]
cannot restore segment prot after reloc: Permission denied
This Error comes when SELinux setting is enabled on the server. Security-Enhanced Linux (SELinux) is a Linux feature that provides a mechanism for supporting access control security policies through the use of Linux Security Modules (LSM) in the Linux kernel.

By Default SELinux is set to “enforcing” in CentOS on boot, this can be disabled permanently. To disable it edit file “/etc/selinux/config” and change SELINUX

From

Code: [Select]
SELINUX=enforcing
TO

Code: [Select]
SELINUX=disabled
But to apply this setting the System or Server need to be rebooted. If you want to disable this feature temporary you can execute following command from the Shell of the System or Server

Code: [Select]
/usr/sbin/setenforce 0
Cheersss!!!! 8)