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
Related videos on Youtube
![Prashant Mani](https://lh4.googleusercontent.com/-jwDgplKySXM/AAAAAAAAAAI/AAAAAAAAABI/p5tu_MbVFS0/photo.jpg?sz=256)
Author by
Prashant Mani
Updated on September 18, 2022Comments
-
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 over 6 yearsPlease don't
chmod
system directories to carry out operations like this. If you do need to usechmod
, mode 777 is almost never the one you want, and the-R
flag is rarely useful (and often harmful) -
sudodus over 6 yearsPermission mode 777 is convenient, but not as safe as modes that are more restrictive.
-