#!/bin/sh

mkdir folder
mkdir folder/subdir
touch folder/file

cp -rp folder folder_no_read
chmod 300 folder_no_read

cp -rp folder folder_no_write
chmod 500 folder_no_write

cp -rp folder folder_no_execute
chmod 600 folder_no_execute

cp -rp folder folder_read_only
chmod 400 folder_read_only

cp -rp folder folder_write_only
chmod 200 folder_write_only

cp -rp folder folder_execute_only
chmod 100 folder_execute_only

cp -rp folder folder_all
chmod 700 folder_all

mv folder folder_nothing
chmod 000 folder_nothing

touch file_no_read
chmod 300 file_no_read

touch file_no_write
chmod 500 file_no_write

touch file_no_execute
chmod 600 file_no_execute

touch file_read_only
chmod 400 file_read_only

touch file_write_only
chmod 200 file_write_only

touch file_execute_only
chmod 100 file_execute_only

touch file_all
chmod 700 file_all

touch file_nothing
chmod 000 file_nothing
