Sun Sep 23 10:56:18 EDT 2018 Slept from eleven-thirty to nine. Smoke detector started beeping for "low battery" around one-thirty, so I got up and pulled it of the ceiling. High of seventy and sunny today. Goals: - Revise ed notes Done. - Play with D&D stuff Not really. Huh. Yesterday, I was looking at Nginx logs. For convenience, I made my user part of the `nginx` group, and made `/var/log/nginx/` readable by the `nginx` group (i.e., 750 when it was 700). ``` /etc/cron.daily/logrotate: error: skipping "/var/log/nginx/access.log" because parent directory has insecure permissions (It's world writable or writable by group which is not "root") Set "su" directive in config file to tell logrotate which user/group should be used for rotation. error: skipping "/var/log/nginx/error.log" because parent directory has insecure permissions (It's world writable or writable by group which is not "root") Set "su" directive in config file to tell logrotate which user/group should be used for rotation. ``` So: ``` --- inky ~ $ sudo logrotate -d -f /etc/logrotate.conf 2>&1 | grep permissions error: skipping "/var/log/nginx/access.log" because parent directory has insecure permissions (It's world writable or writable by group which is not "root") Set "su" directive in config file to tell logrotate which user/group should be used for rotation. error: skipping "/var/log/nginx/error.log" because parent directory has insecure permissions (It's world writable or writable by group which is not "root") Set "su" directive in config file to tell logrotate which user/group should be used for rotation. --- inky ~ $ sudo cp /etc/logrotate.d/nginx /tmp/ --- inky ~ $ sudo vim /etc/logrotate.d/nginx --- inky ~ $ diff -u /tmp/nginx /etc/logrotate.d/nginx --- /tmp/nginx 2018-09-23 11:14:25.167107764 -0400 +++ /etc/logrotate.d/nginx 2018-09-23 11:14:47.974218499 -0400 @@ -1,4 +1,5 @@ /var/log/nginx/*log { + su nginx nginx create 0644 nginx nginx daily rotate 10 --- inky ~ $ sudo logrotate -d -f /etc/logrotate.conf 2>&1 | grep permissions [no errors!] ``` Vacuumed, watered plants. Thirty-minute walk around noon. Splendid day — blue and sunny, neither cool nor hot, and a mild breeze. Heard crickets. Smelled the harvest air. Saw several blue jays and several little white butterflies. A raptor, probably a red-tailed hawk. A dragonfly. Bought soy milk at the grocery. Called mom, chatted. Mom dropped by. We went for a twenty-minute walk. Showed her the hidden path to Beverly Park. Saw a heron at the pond. Climbed the sledding hill together, then ran down it. http://www.messynessychic.com/2018/09/21/the-inexplicably-fascinating-japanese-art-of-being-useless/ > “Not always useful, but not altogether useless” is the mantra behind Chindōgu, a Japanese art form that calls for stilettos with built-in umbrellas, noodle bibs for the face, and glue sticks filled with butter (that one we get). They’re nonsensical inventions on a mission, missing the mark of utility by a hair, and on purpose. “I despise materialism and how everything is turned into a commodity,” explained its founder, 71-year-old Kenji Kawakami, whose lifelong passion for Sticking it to the Man led him to create Chindōgu in the 1990s. Watched a few anime episodes: Barakamon, Holmes of Kyoto. Even with a cotton blanket, I half-woke a couple times last night because of the cold. Wool blanket time. - coffee with half and half (80 cal, 30mg Na, 1g sugar) - egg whites and vegetables (60 cal, 150mg Na, 1g sugar) - apple (60 cal, 1g Na, 10g sugar) with peanut butter (190 cal, 0 Na, 2g sugar) - ground beef and vegetables (estimated 1200 cal, 300mg Na, 10g sugar) Breakfast: coffee, egg whites and vegetables Lunch: apple with peanut butter Dinner: ground beef with vegetables