help with slocate
hey there,
i am curious, is there a way to use slocate to find suid and sgid files and groups? Also, does anyone know of a list of suid files and sgid groups that should be changed? Thanks, -9 |
I believe that the slocate.db file only keeps the filenames in it, not the attributes, so I don't believe you can find that info with the slocate command.
|
Find suid files:
Code:
find / -type f -perm -4000 -print Code:
find / -type f -perm -2000 -print |
Don't forget the -print switch or you won't get output ;)
|
DOH!!! I'll edit that.
|
Why does everyone alwways say you need the -print switch? Mine gives the same output with or without the -print
|
Huh?!?! Not to hijack the thread, but you are right.
|
I would like to know your find version as mine refuse to display standart output without the -print switch, the standart error is displayed (permission denied)
[edit] Ok, get it, with the -type switch -print is not needed |
Excerpt from find manpage:
Quote:
|
All times are GMT -5. The time now is 04:01 PM. |