FIX: cannot restore segment prot after reloc: Permission denied

By: Published: May 7th, 2012 Category: Linux Tips, SELinux

While installation of any package or Starting any service on a RHEL or CentOS based Server you may receive following Error

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

SELINUX=enforcing

 

TO

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

/usr/sbin/setenforce 0
 FIX: cannot restore segment prot after reloc: Permission denied

About

Milind Koyande is the Senior Research Engineer and his job is to work with new technologies, specially Cloud Computing / Virtualization Technology. His past projects include Government Sector initiatives, Backup and Disaster Recovery Solutions.

Tags: , , ,

3 Responses to “FIX: cannot restore segment prot after reloc: Permission denied”


  1. Tweets that mention FIX: cannot restore segment prot after reloc: Permission denied | -- Topsy.com
    on Apr 16th, 2010
    @ 1:18 pm

    [...] This post was mentioned on Twitter by maxmk. maxmk said: FIX: cannot restore segment prot after reloc: Permission denied: While installation of any package or Starting any… http://bit.ly/dcnRFJ [...]


  2. FIX: cannot restore segment prot after reloc: Permission denied « .:][ Gr8 Admin Team ][:.
    on Apr 17th, 2010
    @ 5:39 pm

    [...] Read More here Categories: Linux Tags: cannot restore segment prot after reloc, disable SELinux, disable SELinux temporary, selinux configuration Comments (0) Trackbacks (0) Leave a comment Trackback [...]


  3. FIX: cannot restore segment prot after reloc: Permission denied | eITWebGuru
    on Apr 17th, 2010
    @ 5:52 pm

    [...] Read More here [...]

Leave a Reply

Subscribe to eITWebguru

© 2012 eITWebguru. All Rights Reserved.