(Created page with "{{QA/Test_Case |description=This test case ensures that the `acl` utilities (`setfacl` and `getfacl`) can set and then retrieve the access control entries for a specific file. |setup=Ensure that the {{package|acl}} package is installed on your Fedora system. |actions= # Open a terminal. # Create a test file using the command: `touch testfile`. # Set an ACL entry on the file granting read access to user `testuser` with: `setfacl -m u:testuser:r testfile`. # Retrieve the...") |
No edit summary |
||
Line 1: | Line 1: | ||
{{QA/Test_Case | {{QA/Test_Case | ||
|description=This test case ensures that the `acl` utilities (`setfacl` and `getfacl`) can set and then retrieve the access control entries for a specific file. | |description=The acl package provides tools for managing Access Control Lists, which are used to define more granular discretionary access rights for files and directories. This test case ensures that the `acl` utilities (`setfacl` and `getfacl`) can set and then retrieve the access control entries for a specific file. | ||
|setup=Ensure that the {{package|acl}} package is installed on your Fedora system. | |setup=Ensure that the {{package|acl}} package is installed on your Fedora system. | ||
|actions= | |actions= |
Latest revision as of 17:09, 12 August 2023
Description
The acl package provides tools for managing Access Control Lists, which are used to define more granular discretionary access rights for files and directories. This test case ensures that the acl
utilities (setfacl
and getfacl
) can set and then retrieve the access control entries for a specific file.
Setup
Ensure that the acl
package is installed on your Fedora system.
How to test
- Open a terminal.
- Create a test file using the command:
touch testfile
. - Set an ACL entry on the file granting read access to user
testuser
with:setfacl -m u:testuser:r testfile
. - Retrieve the ACLs for the file using:
getfacl testfile
.
Expected Results
- The
setfacl
command should execute without error. - The output of the
getfacl testfile
command should include an entry like:user:testuser:r--
. - No errors should be encountered during the process.
Optional
Optionally, test additional acl
functionalities. For instance, try setting ACLs for groups, removing ACLs using setfacl
, or testing with directories and checking inheritance.