Interesting command

  • With this command you can see the Octal format of the permissions:
stat -c "%a %U:%G %n" .suid_bash 
 
6755 root:root .suid_bash
  • Then you can search for its meaning

Interesting website

SUID, SGID and Sticky Bits

PermissionOn FilesOn Directories
SUID BitUser executes the file with permissions of theย fileย owner-
SGID BitUser executes the file with the permission of theย groupย owner.File created in directory gets the same group owner.
Sticky BitNo meaningUsers are prevented from deleting files from other users.
  • Search for these types of files
find / -perm -u=s -type f 2>/dev/null