Find setuid setgid files

find / -perm +6000 -type f -exec ls -ld {}\; > setuid.txt &
Note some /usr/bin files like at, crontab, tty are going to have these bits set.

If there is a script or user file set, you can unset it like this:

chmod a-s file

Advertisements

Comments are closed.

%d bloggers like this: