Stop setuid on htop and alias to sudo htop instead.

This commit is contained in:
Scott Wallace 2016-02-18 15:19:10 +00:00 committed by Scott Wallace
parent 9eaca61c4c
commit 2d7c5a2ed4
2 changed files with 1 additions and 9 deletions

View file

@ -98,7 +98,7 @@ export PROMPT_COMMAND="${PROMPT_COMMAND:+$PROMPT_COMMAND$'\n'}history -a"
# Command aliases # Command aliases
#-------------------------------------------------------------------------------- #--------------------------------------------------------------------------------
alias ll='ls -l' alias ll='ls -l'
[[ -x $(which htop 2>/dev/null) ]] && alias top='htop' [[ -x $(which htop 2>/dev/null) ]] && alias top='sudo htop'
#-------------------------------------------------------------------------------- #--------------------------------------------------------------------------------
#-------------------------------------------------------------------------------- #--------------------------------------------------------------------------------

View file

@ -78,14 +78,6 @@ function install_osx_software {
EOF EOF
#------------------------------- #-------------------------------
#-------------------------------
# Some tools require root set-UID
#-------------------------------
xargs -n1 -I % bash -c 'find $(dirname $(greadlink -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
#-------------------------------
#------------------------------- #-------------------------------
# Clean up # Clean up
#------------------------------- #-------------------------------