These are called special permission . This is used to get extra permission on a specific files or directory . If a file has SUID permission , it is executed by the file owner permission rather than the user who execute it . Whereas SGID is used to set group ownership on a specif directory . If any file with sticky bit set , then it will only deleted by the file owner or root . In this article we will explain how to find files with suid sgid and sticky bit permission in linux .

Find files with SUID SGID and sticky bit permission in linux

You can use ls -l command to see the permission on files and directory . The output of this command looks like give below –

list

To find files with SUID set in current directory , give a command as given below

To find files with SUID set in your system , give a command as given below

suid

To find directory with SGID in current directory , give a command as given below

To find files with SGID set in your system , give a command as given below

sgid

To find a file with sticky bit set in current directory , give a command as given below

To find files with Sticky bit set in your system , give a command as given below

sticky bit

To find a file with both SUID and SGID set , give a command as given below

find files with suid sgid and sticky bit permission in linux

You may also like to read following article :

In this short article , we discuss about how to find files with suid , sgid and sticky bit permission in linux .

I hope this article is helpful for you .