We generally work with a basic set of access control with the help of chmod, chown, and chgrp commands that are available in Linux. Although they are useful, they do not provide granular control with respect to individual users.
Access control list
Use case
There is a file named file.txt and the permissions associated with the file are as follows:
-rw-rw---- 1 kplabs kplabs 0 Jun 23 23:15 file.txt
There is a requirement where we need to give the users, Bob and Andy, read access to file.txt and James should have the rwx access to the file, and no one else apart from the owner and the three users should have any access to the file.
The permission requirement is explained via the following diagram:
How to implement this use...