โ† 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. A file has permissions rwxr-x---. Which octal notation represents this?

    Answer: 750

    rwx=7, r-x=5, ---=0 combines to octal 750.

  2. Which command removes the execute permission for 'others' on a file named script.sh?

    Answer: chmod o-x script.sh

    'o' targets the 'others' category and '-x' removes the execute bit.

  3. What does the sticky bit do when set on a directory?

    Answer: Only the file owner or root can delete files within the directory

    The sticky bit prevents users from deleting files they don't own inside a shared directory.

  4. A user wants to set an ACL so that user 'alice' has read-only access to /data/report.txt. Which command is correct?

    Answer: setfacl -m u:alice:r /data/report.txt

    setfacl -m modifies (adds/changes) an ACL entry; u:alice:r grants read to alice.

  5. Which command displays the ACL entries for the file /etc/myconfig?

    Answer: getfacl /etc/myconfig

    getfacl prints the access control list entries for a file or directory.

  6. What is the effect of running 'chmod 4755 /usr/bin/newprog'?

    Answer: Sets the setuid bit and makes the file rwxr-xr-x

    A leading 4 in octal notation sets the setuid bit; 755 gives rwxr-xr-x permissions.

  7. A new file is created by a user whose umask is 027. What are the default permissions on the file?

    Answer: 640

    Files start with base 666; subtracting umask 027 yields 640 (rw-r-----).