Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 11-25-2009, 07:31 AM   #1
Registered: Apr 2008
Distribution: MontaVista Linux Version 4.0.1, Professional Edition
Posts: 215

Rep: Reputation: 16
cannot restore segment prot after reloc: Permission denied

I got the following error when running a program from the commandline:

/lib/ cannot restore segment prot after reloc: Permission denied

I googled this and to solve it I ran the following command as 'root'
/usr/sbin/setenforce 0

This sets mu Linux to turn off 'enforcing'

What is enforcing? and why did this error come up only in the above /lib/

Old 11-25-2009, 08:11 AM   #2
Senior Member
Registered: Aug 2009
Posts: 3,790

Rep: Reputation: 653Reputation: 653Reputation: 653Reputation: 653Reputation: 653Reputation: 653
'Enforcing' is one of the modes of selinux. There are 3 modes available:

- disabled
- permissive (monitoring but not acting)
- enforcing (monitoring and enforcing selinux policies)

There probably isn't a policy for /lib/ so you may want to set selinux to disabled or permissive permanently until you can read up on it, on the RHEL/Fedora family you can edit /etc/sysconfig/selinux.



Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Acroread: cannot restore segment prot after reloc: Permission denied pavodive Linux - Security 8 02-25-2009 02:52 PM
can't execute c++ binaries, "permission denied"... even though permission is 777 SerfurJ Programming 14 02-20-2009 05:50 AM
'permission denied" inspite of right permission flags on network drive anirudhvij Linux - Enterprise 8 05-22-2007 06:57 AM
Access denied when running F-prot preeth26 Linux - Security 6 03-02-2006 01:36 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 05:20 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration