* It is a good idea to backup the system before you do this, because you can easily break the system, if you remove permissions or change ownership on certain files.
Originally Posted by bellygrevios
Yes, this is possible with Pacman's method. Do you need detailed advice?
- create a group and add those with higher permissions into that group. You can give it any name (not yet used), for example 'plus'.
Use or edit directly the file /etc/group if you know what you are doing
- set the permissions of some directories to be only accessible by the user and that group, 750.
(Use the actual name of the directory to be addressed.)
sudo chmod 750 directory
- set the group ownership of those directories to be 'plus'
- set the permissions of other directories to be accessible by everybody, 755 (you wrote 'such as /var/www and others')
sudo chgrp plus directory
- /tmp should always have rwx for everybody, 777, for the system to work properly.
sudo chmod 755 directory
* Check with in the directory above the one you want to check, that the permissions are what you want.
- You may need to set permissions and ownership of certain files too. Then use the file name(s) instead of a directory name in the chmod and chgrp command lines.