Victoria University CYBER SECU NIT2102 Lab 8 – Access Control List ACL @ LinuxACL is technology used to implement access control (permissions).Below is a list of commands used to set, get, and remove ACL for Users, Groups, and Others.Command | Descriptionmkdir ‘Directory name’ | To make or create a directoryrmdir ‘Directory name’ | To delete directorycd ‘Directory name’ | T
...[Show More]
Lab 8 – Access Control List ACL @ Linux
ACL is technology used to implement access control (permissions).
Below is a list of commands used to set, get, and remove ACL for Users, Groups, and Others.
Command | Description
mkdir ‘Directory name’ | To make or create a directory
rmdir ‘Directory name’ | To delete directory
cd ‘Directory name’ | To change Directory
touch 'filename' | To create a new file
cat > 'filename' then ctrl d | To create a new file and write a text then save
getfacl 'file name' | To get/check ACL (permissions)
setfacl –m u:'username':'permission' 'directory path' | To set ACL for a user
setfacl –m g:'groupname':'permission' 'directory path' | To set ACL for a group
setfacl –x u:'username':'permission' 'directory path' | To remove ACL for a user
groupadd 'groupname’ | To add group
useradd 'username’ | To add user
gpasswd –a ‘usernames’ ‘groupname’ | To add users in a group
gpasswd -M ‘usernames’ ‘groupname’ | To add users in a group, and deleting the old users
su ‘username’ | To switch user
grep ‘groupname’ /etc/group | To show users of a group
chmod ‘NNN’ 'file name' N:0-7 | To change Mode
chown 'owner name' 'file name' | To change Owner
chgrp 'group name' 'file name' | To change GroupUsing the commands in the table above and following the video try to make your own project:
1- Create directories for your project similar to the one in the video (choose any name for your directories)
2- Create users. (Choose any name for your user)
3 Check the given permissions of both directories.
5- Create groups.
6- Add some users to the groups you have created
7- Check if the users are added to the groups
8- Set the file ACL of each group over the directories.
9- Check the ACL of your directories and see if your group permissions is done
10. Cancel some permissions given to a user or a group over a directory set
Thank You
[Show Less]