February 2020
Intermediate to advanced
666 pages
15h 45m
English
One quick security trick is to run the find command to take inventory of the SUID and SGID files on your system. You can also save the output to a text file so that you can verify whether anything has been added since you ran the command. Your command will look something like this:
sudo find / -type f \( -perm -4000 -o -perm -2000 \) > suid_sgid_files.txt
Here's the breakdown: