linux get permissions on directory code example
Example 1: show rights inside folder debian
$ ls -ld directory
Example 2: debian give write permission
sudo chmod -R 757 /var/www
$ ls -ld directory
sudo chmod -R 757 /var/www