- Forums
- Linux Hosting
- Command to Find Files with SUID and SGID bit set
as you may or may not know, there are security risks of using programs that have their suid or sgid bits set [1360], Last Updated: Mon Jun 24, 2024
Hostman
Sun Feb 28, 2010
1 Comments
604 Visits
as you may or may not know, there are security risks of using programs that have their SUID or SGID bits set, you can search your Linux Dedicated server provided by Webune to check if there are any programs that are using the SUID and SGID bit. you can use this command to search for them:
find / -perm +6000 -type f
to search for SUID files you can just change +6000 t +4000
find / -perm +4000 -type f
to search for SGID only:
find / -perm +2000 -type f