-2

I am trying to install oracle database in Ubuntu 16.04 LTS. I had unzipped the oracle database file in opt folder,but now when I am trying to give execute right to the sqldeveloper file using chmod +x sqldeveloper.sh, it's throwing this error:

chmod: changing permissions of 'sqldeveloper.sh': Operation not permitted
Zanna
  • 69,223
  • 56
  • 216
  • 327
Prashant Mani
  • 25
  • 2
  • 8
  • 1
    You just asked something similar: https://askubuntu.com/questions/971135/dont-have-right-permission-to-extract-file-in-opt-folder – muru Oct 31 '17 at 08:33
  • You need to use `sudo` when trying to do anything in root privileged directories. – Rahul Oct 31 '17 at 09:20

2 Answers2

3

If you are not the owner of a file you can't modify its permission bits. Well, with richacls you can do that, but you are not going to find it in a basic Ubuntu installation

The root user can do that. There are many ways to become root user in GNU/Linux. The recommended way to do this in Ubuntu is by using sudo

sudo chmod +x /opt/sqldeveloper.sh
Drymartini
  • 128
  • 7
2

The command to use is:

sudo chmod +x /opt/sqldeveloper.sh
George Udosen
  • 35,970
  • 13
  • 99
  • 121