Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 399
  • Last Modified:

Permission Denide in usr/local

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?

1 Solution
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:

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

tinoza2004Author Commented:
Thank you for reply.


Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now