Operating System - HP-UX
1752562 Members
4526 Online
108788 Solutions
New Discussion юеВ

Need to find directories with 777 permissions

 
SOLVED
Go to solution
sebastien_7
Occasional Advisor

Need to find directories with 777 permissions

Hello,

What would be the best way to find which directories are set with 777 permissions in all filesystems?

Thanks
Sebastien
4 REPLIES 4
Patrick Wallek
Honored Contributor
Solution

Re: Need to find directories with 777 permissions

# find / -type d -perm 0777 -exec ls -ld {} \;
sebastien_7
Occasional Advisor

Re: Need to find directories with 777 permissions

Thanks Patrick I could not have asked for a faster reply ;)


Regards.
Sebastien
Pete Randall
Outstanding Contributor

Re: Need to find directories with 777 permissions

Use the find command:

find /start_dir -type d -perm 777


Pete

Pete
Dani Seely
Valued Contributor

Re: Need to find directories with 777 permissions

Hey Sebastien,
Since you want directories only, use the find command like this:
# find -type d -perm 777 -exec ls -ld {} \;

This will do it for you.
Together We Stand!