From Fedora Project Wiki

(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

  1. Open a terminal.
  2. Create a test file using the command: touch testfile.
  3. Set an ACL entry on the file granting read access to user testuser with: setfacl -m u:testuser:r testfile.
  4. Retrieve the ACLs for the file using: getfacl testfile.

Expected Results

  1. The setfacl command should execute without error.
  2. The output of the getfacl testfile command should include an entry like: user:testuser:r--.
  3. 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.