about summary refs log tree commit diff
path: root/find-suid
blob: e8aa4706168e2a2dfc79ad46f8c83d197af19e5b (plain) (blame)
1
2
3
4
5
6
7
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

Consider giving Nix/NixOS a try! <3