Hi, im looking for a find command to find all files under the / files that are suid and gid.
i got, find / ???. How can i use the find command to look for files under the / that have suid and gid.
Thanks
Hi, im looking for a find command to find all files under the / files that are suid and gid.
i got, find / ???. How can i use the find command to look for files under the / that have suid and gid.
Thanks
setuid or setgid (GNU findutils):
find / -perm /6000
setuid or setgid (POSIX):
find / -perm -4000 -o -perm -2000
setuid and setgid:
find / -perm -6000