Write permission to /usr/local folder

Asked by Chirag

chirag@chirag-desktop:/usr$ ls -l
total 116
drwxr-xr-x 2 root root 36864 2007-12-10 02:16 bin
drwxr-xr-x 2 root root 4096 2007-04-15 17:22 games
drwxr-xr-x 33 root root 4096 2007-12-10 02:15 include
drwxr-xr-x 136 root root 36864 2007-12-15 12:48 lib
drwxr-xr-x 10 root root 4096 2007-04-15 17:18 local
drwxr-xr-x 2 root root 12288 2007-12-15 12:48 sbin
drwxr-xr-x 269 root root 12288 2007-12-15 12:48 share
drwxrwsr-x 4 root 40 4096 2007-04-15 17:23 src
drwxr-xr-x 3 root root 4096 2007-04-15 17:20 X11R6
chirag@chirag-desktop:/usr$

My requirement is to copy "ncurses library folder"

/usr/local

folder, but this folder is owned by root.

Now can you show me the way ?

( I tried using "chown" command using "sudo chown chirag local" but it didn't work)

Question information

Language:
English Edit question
Status:
Answered
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Marshall Scorcio (marshalium) said :
#1

If you are copying a file to /usr/local it is best to copy it there as root using sudo.

Something like:

"sudo cp -r ncurses-library-folder /usr/local/"

Or if you are using make:

"sudo make install"

Can you help with this problem?

Provide an answer of your own, or ask Chirag for more information if necessary.

To post a message you must log in.