>_ IzzyLab

Topic breakdown

The tar format stores inside the archive not only file contents but also their metadata, including the access mode. The key point is restoring permissions on extraction: as root they are applied by default, and a special preserve-permissions flag makes this behavior explicit and independent of umask and environment settings. Mental model: packing a directory and extracting into a new place are two symmetric operations (-c versus -x), and -C switches the working directory so the archive holds relative paths. The resulting mode is convenient to verify with stat -c%a.

What's checked

  1. 750 permissions preserved after extraction

What it looks like