Linux Mint 15: How to change permission of /opt folder

9,906

I would use the command sudo to copy/move the files to /opt rather than change the permissions over there so that other users can write to it, besides the root user. A command such as this would do it:

$ sudo mv <unpacked directory> /opt
$ sudo chown -R root.root /opt/<unpacked directory>

NOTE: This isn't meant as a literal "" it's a placeholder, put the actual name of the directory after you unpacked the Pycham archive.

Share:
9,906
Confused Newbie
Author by

Confused Newbie

Updated on September 18, 2022

Comments

  • Confused Newbie
    Confused Newbie over 1 year

    I'm trying install Pycharm Community 3.0.1. I'm extremely new to Linux and don't really know how to install things without explicit instructions (which for more popular software has just been pasting lines of commands into the terminal), which after searching online I've only found the following instructions: Install Pycharm on Linux Mint

    However trying to move the extracted folder results in a "Permission Denied" error. How would I change the permissions of /opt so I can move the folder?

    Or is there a better way to install things like this? The original file was a .tar.gz folder.