![](../../notes/Linux-things/img/Pasted-image-20240301141710.png)
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
![](../../notes/Linux-things/img/Pasted-image-20240512165621.png)
Permission | On Files | On Directories |
---|
SUID Bit | User executes the file with permissions of theย fileย owner | - |
SGID Bit | User executes the file with the permission of theย groupย owner. | File created in directory gets the same group owner. |
Sticky Bit | No meaning | Users are prevented from deleting files from other users. |
- Search for these types of files
find / -perm -u=s -type f 2>/dev/null