Add block of code to setuid certain binaries.
This commit is contained in:
parent
6e6a7e1128
commit
487f65de0b
|
@ -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
|
||||
#-------------------------------
|
||||
|
|
Loading…
Reference in a new issue