Linux Script to check for SetUID

439 Views Asked by At

I need to write a script file to check for SetUID programs with the permission of 4755. How can I do this?

1

There are 1 best solutions below

1
On

In bash:

path=/pathtosearch
find $path -perm 4755