Find suid and gid files under root
I’m look开发者_开发百科ing for find
command arguments to find all files under the /
that have setuid and setgid privileges. I have find / ???
so far.
setuid or setgid (GNU findutils):
find / -perm /6000
setuid or setgid (POSIX):
find / -perm -4000 -o -perm -2000
setuid and setgid:
find / -perm -6000
find / \( -perm -u+s -o -perm -g+s \) -type f
find / -perm -u=s -g=s -type f 2>/dev/null
the following command you can enumerate all binaries having SUID permission.
精彩评论