Permission Denide in usr/local

Posted on 2005-03-19
Medium Priority
Last Modified: 2010-04-20
Hi Expert,

I am new to linux. I install some  programs from website just to test out.
I do the following according to instruction:

./configure --prefix=/usr/local
make check
and last one "make install"

After doing "make install " in command line, I obtain the following errors:

cannot create regular file `/usr/local/........etc': Permission denied.

I was wondering how could i fix that. I also try to copy the source code and put in /usr/local/ , and it 's not allowed me to do so, Permission Denied again.

Normally it might cause of securiy reason or something?

Question by:tinoza2004
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
LVL 13

Expert Comment

ID: 13584337
You need to install as root or install to a directory that you have permissions to install to. (Such as your home directory) The installer is trying to create directories (and subsequently install to directories) in /usr/local and failing because the user you're logged in as does not have write permissions to the directory.

The root (administrative) user has permissions to write/remove/overwrite/create/change ownership/change permissions on every file and hence will be able to install to /usr/local.

Here's a good tutorial on permissions in Linux & UNIX in general:

LVL 20

Accepted Solution

nedvis earned 200 total points
ID: 13584545
Before you start installing program , open terminal console and at the command prompt type :  
( it stands for s-uper  u-ser )  
and then type root password and press <enter> key. Now you're logged as root with all administrative privileges to  install programs.  
To make sure everything is OK type :  
 and you linux will returned the answer who is currently logged in that  particular terminal session.

Then change to directory where you program installation files reside and proceed with installation:
          make install
 or whatever options you'll need for applications to be installed the way you want.
good luck


Author Comment

ID: 13584720
Thank you for reply.


Featured Post

Get your Disaster Recovery as a Service basics

Disaster Recovery as a Service is one go-to solution that revolutionizes DR planning. Implementing DRaaS could be an efficient process, easily accessible to non-DR experts. Learn about monitoring, testing, executing failovers and failbacks to ensure a "healthy" DR environment.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

1. Introduction As many people are interested in Linux but not as many are interested or knowledgeable (enough) to install Linux on their system, here is a safe way to try out Linux on your existing (Windows) system. The idea is that you insta…
In part one, we reviewed the prerequisites required for installing SQL Server vNext. In this part we will explore how to install Microsoft's SQL Server on Ubuntu 16.04.
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial
Suggested Courses
Course of the Month10 days, 7 hours left to enroll

765 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question