Add block of code to setuid certain binaries.

This commit is contained in:
Scott Wallace 2016-01-28 18:43:32 +00:00
parent 6e6a7e1128
commit 487f65de0b

View file

@ -59,3 +59,11 @@ xargs brew cask install <<EOF
yubikey-personalization-gui
EOF
#-------------------------------
#-------------------------------
# Some tools require root set-UID
#-------------------------------
xargs -n1 -I % bash -c 'find $(dirname $(readlink -f $(which %))) -name $(basename $(which %)) -type f ! \( -perm -u+s -a -user root \) ' <<EOF | xargs -n 1 -I % sudo bash -c 'chown root: % && chmod u+s %'
htop
EOF
#-------------------------------