From Fedora Project Wiki

Revision as of 17:09, 12 August 2023 by Sumantrom (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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.