Access Denied in /opt

5,412

Solution 1

To check permission of directory /opt run:

ls -ld /opt

output will looks like:

drwxr-xr-x 24 root root 4096 Feb  1 13:34 /opt/

As you see this directory is owned by the root user and group root.

More the others permission is r-x which means no write permission is allowed to others(users which are not owner or not in the group). And when you are making a cp command this means a writing process inside this dir.

So what you shall do is to use the sudo command before your command.

sudo cp -avr /home/hienz1/Downloads/Linux-Track/linuxtrack-0.99.17 /opt  

Solution 2

I think you can use sudo to achieve this...

sudo cp -avr /home/hienz1/Downloads/Linux-Track/linuxtrack-0.99.17 /opt
Share:
5,412

Related videos on Youtube

hienz1
Author by

hienz1

Updated on September 18, 2022

Comments

  • hienz1
    hienz1 almost 2 years

    I've been using Xubuntu 14.04 for 1 month now. I'm trying to install a program "Linuxtrack" - a head tracker for gaming. Their website install instructions state:

    "linuxtrack has to be installed in /opt, otherwise it is not going to work (at least not without changing LD_LIBRARY_PATH to let it find its libraries".

    So I opened the Terminal, at the commandline I used cp -avr to try and copy the unzipped program file to the /opt directory.

    hienz1@Kickass:~/Downloads/Linux-Track$ 
    cp -avr /home/hienz1/Downloads/Linux-Track/linuxtrack-0.99.17 /opt cp: 
    cannot create directory ‘/opt/linuxtrack-0.99.17’: Permission denied
    

    Permission Denied? How do I get around this permission denied thing?

    :The "linuxtrack" program wiki is here

  • Maythux
    Maythux over 8 years
    @hienz1 Welcome buddy