Stop setuid on htop and alias to sudo htop
instead.
This commit is contained in:
parent
9eaca61c4c
commit
2d7c5a2ed4
2
.bashrc
2
.bashrc
|
@ -98,7 +98,7 @@ export PROMPT_COMMAND="${PROMPT_COMMAND:+$PROMPT_COMMAND$'\n'}history -a"
|
|||
# Command aliases
|
||||
#--------------------------------------------------------------------------------
|
||||
alias ll='ls -l'
|
||||
[[ -x $(which htop 2>/dev/null) ]] && alias top='htop'
|
||||
[[ -x $(which htop 2>/dev/null) ]] && alias top='sudo htop'
|
||||
#--------------------------------------------------------------------------------
|
||||
|
||||
#--------------------------------------------------------------------------------
|
||||
|
|
|
@ -78,14 +78,6 @@ function install_osx_software {
|
|||
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
|
||||
#-------------------------------
|
||||
|
|
Loading…
Reference in a new issue