From fcf8d0c0246b353f255eb5173cd8cd3748f8da3b Mon Sep 17 00:00:00 2001 From: Azat Bahawi Date: Thu, 1 Jan 1970 03:00:00 +0300 Subject: chore: init --- find-suid | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100755 find-suid (limited to 'find-suid') diff --git a/find-suid b/find-suid new file mode 100755 index 0000000..e8aa470 --- /dev/null +++ b/find-suid @@ -0,0 +1,8 @@ +#!/usr/bin/env bash + +IFS=':' read -r -a paths <<<"${PATH}" + +for directory in "${paths[@]}"; do + [ -d "${directory}" ] && + find "${directory}" -type f -perm /u+s,g+s -ls +done -- cgit 1.4.1