ubuntu user permissions code example
Example 1: linux give permission to folder
sudo chmod -R a+rwx /path/to/folder
Example 2: how to give permission to a user in linux on a folder
sudo chmod u+w myfolder
Example 3: grant all the permission to the user ubuntu
The simplest way is to use chown:
sudo chown -R testuser:testuser /var/www/test/public_html
Example 4: permission terminal ubuntu
chmod ugoa+rwx fichier3