Check for SUID Programs

If SUID is set, a program runs at the privlege of the owner of the file.

find / -type f \( -perm -04000 -o -perm -02000 \)

man find

Basic Unix file permissions:

Pages 97 - 106, Practical UNIX and Internet Security

Octal table on page 104.

SUID, SGID, Read, Write, Execute, Sticky

File type, User, Group, Other:

--rwxr-s--- 2740
rwxr-xr-x 0755

Directory perms:

SGID on directory, new files there get owned by that group

Sticky on directory, files created are restricted for access by the owner only, page 128

Contents