Command to Find Files with SUID and SGID bit set

RegisterLogin
Command to Find Files with SUID and SGID bit set
Post Description: as you may or may not know, there are security risks of using programs that have their suid or sgid bits set
Tags: command, to, find, files, with, suid, and, sgid, bit, set
This Post Was Posted On Feb 28, 2010 By Hostman #3209
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


dell
#3809 1
how to search for files with sgid and suid
Apr 19, 2010 Reply Report abuse
©2011 Webune Forums - Sun Dec 18, 2011 10:38 pm
Powered by: Webune Forums V3