Skip to content

SUID / SGID

Description

SUID is defined as giving temporary permissions to a user to run a program/file with the permissions of the file owner rather that the user who runs it. In simple words users will get file owners permissions as well as owner UID and GID when executing a file/program/command.

SGID is defined as giving temporary permissions to a user to run a program/file with the permissions of the file group permissions to become member of that group to execute the file. In simple words users will get file Groups permissions when executing a Folder/file/program/command.

Usage

find / -perm /4000 2>/dev/null
find / -perm /2000 2>/dev/null

References