Saturday 19 May 2018

linux - How can I find all PHP files with group write permissions?


I've been trying to get the -perm option of find to give me all PHP files that are group writable. Should this work?


find -name "*.php" -perm g-w

Thanks!



Answer



Try:


find -iname "*.php" -perm -g=w

-g=w means look for files that have this permission set.


No comments:

Post a Comment

Where does Skype save my contact's avatars in Linux?

I'm using Skype on Linux. Where can I find images cached by skype of my contact's avatars? Answer I wanted to get those Skype avat...