From: Chris Koeritz Date: Thu, 31 May 2018 13:03:48 +0000 (-0400) Subject: bug fix for home dir in permissionator X-Git-Tag: 2.140.114^2~19 X-Git-Url: https://feistymeow.org/gitweb/?a=commitdiff_plain;h=20e1a09bf9e638bbccf8a5169bc7a969ce1d7f3a;p=feisty_meow.git bug fix for home dir in permissionator was using ~root in refred, since i mistakenly used $HOME within the script. fixed to be the home for the user specified rather than whoever happens to be running the script. also a new couple of fortunes in nechung db. --- diff --git a/infobase/fortunes.dat b/infobase/fortunes.dat index ad950551..315e71af 100644 --- a/infobase/fortunes.dat +++ b/infobase/fortunes.dat @@ -43423,5 +43423,57 @@ Just be in its natural state, without premeditation. That is true freedom. -- Longchenpa, from "You Are the Eyes of the World", published by Shambhala Publications +~ +Milarepa’s Song on the Way of the Yogi + +I am just a man, a yogi of Tibet; +I am Milarepa. +I’ve studied little but have many key instructions. +Though I’m humble, I have great perseverance. +I sleep little and have great endurance in meditation. +I’m an expert in all by knowing one thing +And I understand everything to be one: +I am an expert in genuine reality. +On my small seat, stretching my legs is pleasant. +With thin clothes, my body is perfectly warm. +With small bits of tsampa, my stomach is full. +My example is that which all meditators aspire to. +I’m a gathering place for those with faith. +I’m an object of reliance for those fearful of birth and death. +I go in no fixed direction +And I stay in no one particular place. +For conduct, I go without reference points. +I have no attachment to material things +And no notion of clean or dirty food. +For me, the pain of the afflictions is small. +I have little self-regard and few desires. +I’ve little attachment to perceiver and perceived +And I’ve loosened the knots of the state of nirvana. +I’m a friend of the elderly, a shoulder to lean on, +And a playmate for young children. +I’m a yogi who roams the country far and wide. +May you devas and humans be healthy and happy. + -- Milarepa and Tsangnyon Heruka, "The Hundred Thousand Songs of Milarepa", + published by Shambhala Publications +~ +It’s very important to keep examining your mind at all times and be aware of +what occurs in it. We have this habit of criticizing others; we are very good +at pointing out their faults, but we have a hard time being aware of our own +flaws. Examining the faults of others will not benefit anyone and only leads +to more disturbing emotions, blocking our path to liberation. Whatever anyone +else does, let them do it. It’s not your business to find other people’s +flaws, and even if you do point them out, there is no way for you to correct +them. On the other hand, it is very important to watch your own mind and +train in subduing and reducing your own disturbing emotions. Analyze your +mind, constantly watch your thoughts, recognizing whether they are positive or +negative, and become aware of your faults. If you constantly observe yourself +and analyze your thoughts, you will eventually be able to tame your mind. +Since we haven’t been able to purify our karmic and emotional obscurations, +our gross disturbing emotions can come up anytime, and whenever these emotions +come up, we should apply the antidote by looking into our mind and trying to +understand that all phenomena are emptiness. If you leave your mind in a +relaxed state without contriving anything, disturbing emotions will cease. + -- Drubwang Penor Rinpoche, from "An Ocean of Blessings", published by + Shambhala Publications diff --git a/scripts/security/cool_permissionator.sh b/scripts/security/cool_permissionator.sh index 12fb2544..e4f345c9 100644 --- a/scripts/security/cool_permissionator.sh +++ b/scripts/security/cool_permissionator.sh @@ -10,6 +10,9 @@ function reapply_cool_permissions() { local cooluser="$1"; shift +#hmmm: check for non empty name. + local homebase="/home/$cooluser" + # first build a list of dirs based on their location in /home/archives. local arch_builder="archons basement codebarn games imaginations musix pooling prewar_toaster stuffing toaster walrus" local ARCHIVE_TOP=/home/archives @@ -28,14 +31,14 @@ function reapply_cool_permissions() fi # fix some permissions for important security considerations. - if [ -d $HOME/.ssh ]; then - harsh_perm $HOME/.ssh + if [ -d $homebase/.ssh ]; then + harsh_perm $homebase/.ssh fi #hmmm: consider adding feisty meow apex to the dirname list below. # iterate across the list of dirs we want cooluser to own and change their ownership. - for dirname in $HOME \ + for dirname in $homebase \ $DEFAULT_FEISTYMEOW_ORG_DIR \ /usr/local/${cooluser} \ /home/games \ @@ -81,7 +84,7 @@ if [[ $0 =~ .*cool_permissionator\.sh.* ]]; then export FEISTY_MEOW_APEX="$( \cd "$THISDIR/../.." && \pwd )" source "$THISDIR/../core/launch_feisty_meow.sh" exit_on_error "sourcing the feisty meow launcher" - coolio="$(logname)" + coolio="$USER" reapply_cool_permissions "$coolio" exit_on_error "reapplying cool permissions on $coolio" fi