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

x
  • 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
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?





0
tinoza2004
Asked:
tinoza2004
1 Solution
 
gripeCommented:
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:

http://www.perlfect.com/articles/chmod.shtml
0
 
nedvisCommented:
Before you start installing program , open terminal console and at the command prompt type :  
                 su    
( 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 :  
              whoami
 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:
          ./configure
          make
          make install
 or whatever options you'll need for applications to be installed the way you want.
good luck
 nedvis


0
 
tinoza2004Author Commented:
Thank you for reply.

0

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