Mon Jan 13 06:00:01 EST 2020 ======================================== Slept from eleven to six-thirty. Woke briefly around two-thirty. Not as cold. Mostly cloudy. Areas of light freezing drizzle and slight chance of snow in the morning. Highs in the upper 30s. Southwest winds up to 10 mph. Chance of precipitation 20 percent. Work ---------------------------------------- - Add central landscaping site to Icinga (and router backup scripts, etc.) Done. - 4 PM call with Entrata (Julie's office) Done. https://www.gnu.org/software/coreutils/manual/html_node/Directory-Setuid-and-Setgid.html > On most systems, if a directory’s set-group-ID bit is set, newly created subfiles inherit the same group as the directory, and newly created subdirectories inherit the set-group-ID bit of the parent directory. On a few systems, a directory’s set-user-ID bit has a similar effect on the ownership of new subfiles and the set-user-ID bits of new subdirectories. These mechanisms let users share files more easily, by lessening the need to use chmod or chown to share new files. > > These convenience mechanisms rely on the set-user-ID and set-group-ID bits of directories. If commands like chmod and mkdir routinely cleared these bits on directories, the mechanisms would be less convenient and it would be harder to share files. Therefore, a command like chmod does not affect the set-user-ID or set-group-ID bits of a directory unless the user specifically mentions them in a symbolic mode, **or uses an operator numeric mode such as ‘=755’**, or sets them in a numeric mode, or clears them in a numeric mode that has five or more octal digits. `CHMOD(1)` > A numeric mode is from one to four octal digits (0-7), derived by adding up the bits with values 4, 2, and 1. Omitted digits are assumed to be leading zeros. The first digit selects the set user ID (4) and set group ID (2) and restricted deletion or sticky (1) attributes. The second digit selects permissions for the user who owns the file: read (4), write (2), and execute (1); the third selects permissions for other users in the file's group, with the same values; and the fourth for other users not in the file's group, with the same values. https://superuser.com/questions/151911/how-to-make-new-file-permission-inherit-from-the-parent-directory https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/6/html/storage_administration_guide/acls-setting ACL's aren't too scary. https://paulgorman.org/technical/linux-acls.txt.html Grab a file from a bare Git repo? https://stackoverflow.com/questions/2466735/how-to-sparsely-checkout-only-one-single-file-from-a-git-repository ``` 🐚 firefly ~ $ git --no-pager --git-dir /var/repo/dnsfilter/ show master:dns_whitelist | tail players.brightcove.net players.brightcove.net.edgekey.net tags.tiqcdn.com brightcove.net openwall.com login.yahoo.com aetna.com cdnjs.cloudflare.com nexus.officeapps.live.com msecnd.net ``` https://www.git-scm.com/docs/githooks#post-receive https://github.com/git/git/blob/master/contrib/hooks/post-receive-email Yeah, the hooks are nice. Twenty-minute walk at lunch. Warmer, but not warm. Much of the snow and ice melted. Overcast. The sun peeked out for a minute. Home ---------------------------------------- - Renew Let's Encrypt cert Done. - Play with websockets A bit. Watched some anime. Servings: grains 6/6, fruit 3/4, vegetables 3/4, dairy 2/2, meat 3/3, nuts 0/0.5 Brunch: hard-boiled egg, cucumber, banana, coffee Lunch: bagel with cream cheese, yogurt, banana, tomato Afternoon snack: coffee, orange Dinner: Chinese 112/72