From: Joerg Woelke Date: Sat, 5 Sep 2009 19:09:35 +0000 (+0200) Subject: zshrc: Fix suidfind() and remove findsuid(). X-Git-Tag: v0.3.75~4 X-Git-Url: https://git.grml.org/?p=grml-etc-core.git;a=commitdiff_plain;h=0f54088ed3defd8b0bdb9b6caaa103118a1cfff8 zshrc: Fix suidfind() and remove findsuid(). Acked-by: Michael Prokop --- diff --git a/etc/zsh/zshrc b/etc/zsh/zshrc index f7cc96a..e11d04d 100644 --- a/etc/zsh/zshrc +++ b/etc/zsh/zshrc @@ -3623,19 +3623,8 @@ ansi-colors() { done } -# suidfind() { ls -latg $path | grep '^...s' } #f5# Find all files in \$PATH with setuid bit set -suidfind() { ls -latg $path/*(sN) } - -# See above but this is /better/ ... anywise .. -findsuid() { - print 'Output will be written to ~/suid_* ...' - $SUDO find / -type f \( -perm -4000 -o -perm -2000 \) -ls > ~/suid_suidfiles.`date "+%Y-%m-%d"`.out 2>&1 - $SUDO find / -type d \( -perm -4000 -o -perm -2000 \) -ls > ~/suid_suiddirs.`date "+%Y-%m-%d"`.out 2>&1 - $SUDO find / -type f \( -perm -2 -o -perm -20 \) -ls > ~/suid_writefiles.`date "+%Y-%m-%d"`.out 2>&1 - $SUDO find / -type d \( -perm -2 -o -perm -20 \) -ls > ~/suid_writedirs.`date "+%Y-%m-%d"`.out 2>&1 - print 'Finished' -} +suidfind() { ls -latg $path | grep '^...s' } # TODO: So, this is the third incarnation of this function!? #f5# Reload given functions