Don't have right permission to extract file in /opt folder

7,124

sudo privileges are required to make changes in /opt directory.

Use this command to extract file.zip in /opt.

sudo unzip file.zip -d /opt
Share:
7,124

Related videos on Youtube

Prashant Mani
Author by

Prashant Mani

Updated on September 18, 2022

Comments

  • Prashant Mani
    Prashant Mani almost 2 years

    I am trying to install sqldeveloper. I tried to extract the zip file in /opt but it shows this error:

    you don't have the right permission to extract archives in the folder "opt".
    

    I tried changing the permissions using chmod 777/opt-R but that also didn't work.

    Please suggest what to do.

    • Zanna
      Zanna over 6 years
      Please don't chmod system directories to carry out operations like this. If you do need to use chmod, mode 777 is almost never the one you want, and the -R flag is rarely useful (and often harmful)
    • sudodus
      sudodus over 6 years
      Permission mode 777 is convenient, but not as safe as modes that are more restrictive.