โ† All RHCSA Flashcard Decks

RHCSA File Permissions and ACLs Flashcards

7 cards from real RHCSA practice questions. Tap to flip, then mark Knew It or Still Learning โ€” missed cards come back until you master them.

Read the first 7 RHCSA File Permissions and ACLs flashcards as text
  1. User jane runs 'umask 077'. What permissions will a newly created directory have?

    Answer: 700

    Directories have a base of 777; subtracting umask 077 yields 700 (rwx------).

  2. Which command recursively sets ownership of /var/www to user apache and group apache?

    Answer: chown -R apache:apache /var/www

    chown -R user:group path recursively changes both owner and group in one command.

  3. Which command copies the ACL from file source.txt and applies it to dest.txt?

    Answer: getfacl source.txt | setfacl --set-file=- dest.txt

    Piping getfacl output into setfacl --set-file=- is the standard method to transfer ACLs between files.

  4. A directory has permissions drwxrws---. What does the 's' in the group field indicate?

    Answer: The setgid bit is set on the directory

    An 's' in the group execute position indicates the setgid bit is set and the execute bit is also set.

  5. What happens when you run 'chmod u+s' on an executable binary?

    Answer: The binary runs with the file owner's privileges regardless of who executes it

    The setuid bit causes an executable to run with the file owner's UID rather than the caller's UID.

  6. Which command removes only the ACL entry for group 'contractors' from file project.conf?

    Answer: setfacl -x g:contractors project.conf

    setfacl -x removes a specific named ACL entry without affecting other entries.

  7. A file shows permissions rw-r--r--. Which symbolic chmod command makes it executable only by the owner?

    Answer: chmod u+x file

    'u+x' adds execute permission exclusively for the file's owner without affecting group or other bits.