You can execute the following commands to modify file/folder permissions and ownership on Linux:
Imagine a folder called *Books* on the Desktop to which you wanted to give full read/write access to, you could execute the following command in the terminal:
sudo chmod -R ugo+rw ~/Desktop/Books
Defining the above command :
- **sudo** – used to gain admin rights.
- **chmod** – the command to modify permissions
- **-R** – this modifies the permission of the parent folder and the child objects within
- **ugo+rw** – this gives User, Group, and Other read and write access.