Remind setup (no permissions yet) cd ~/Documents pwd ls -lR # 3 directories cat /etc/passwd # 4 users Test auser & duser on AlphaDir (no permissions yet) su -c 'bash TestAccess.sh AlphaDir' auser su -c 'bash TestAccess.sh AlphaDir' duser Create & populate group AlphaDeny sudo groupadd AlphaDeny sudo usermod -a -GAlphaDeny auser sudo usermod -a -GAlphaDeny cuser getent group AlphaDeny Set 'other' permissions for AlphaDir & contents chmod o=rwx AlphaDir chmod o=rwx AlphaDir/* Change group for AlphaDir & contents to AlphaDeny sudo chown :AlphaDeny AlphaDir sudo chown :AlphaDeny AlphaDir/* Set group permissions for AlphaDir & contents chmod g= AlphaDir chmod g= AlphaDir/* 'Whitebox' test of AlphaDir permissions ls -lR getent group $(stat -c "%G" AlphaDir) getent group $(stat -c "%G" AlphaDir/*) 'Blackbox' test of AlphaDir permissions for auser su -c 'bash TestAccess.sh AlphaDir' auser su -c 'bash TestAccess.sh AlphaDir' duser