Results 1 to 5 of 5
Hey
I want to quickly check my system for badly configured permissions
So I did this:
find /etc/ -perm **6
But it didn't work at all.. so I thought about ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
- 05-08-2010 #1
find wrong permissions
Hey
I want to quickly check my system for badly configured permissions
So I did this:
find /etc/ -perm **6
But it didn't work at all.. so I thought about doing this
find / -perm {0,1,2,3,4,5,6,7}{0,1,2,3,4,5,6,7}6
So, is there a way to do something like this?
- 05-09-2010 #2
irrespective of other permissions, then you should try -g=rw.
refer #7 here: Mommy, I found it! — 15 Practical Linux Find Command Examples
- 05-14-2010 #3
- 06-10-2010 #4Linux Enthusiast
- Join Date
- Aug 2006
- Location
- Portsmouth, UK
- Posts
- 539
Hi Guys,
I'm struggling with find and permissions.
I'm trying to find files with more permissive permissions than 640 so
740 or 644 would match but 400 wouldn't for example.
I want to use find only as there maybe funny characters in the filenames and want to use -print0 to work around the problem.
Any suggestions?RHCE #100-015-395
Please don't PM me with questions as no reply may offend, that's what the forums are for.
- 06-10-2010 #5Linux Enthusiast
- Join Date
- Aug 2006
- Location
- Portsmouth, UK
- Posts
- 539
This appears to give the desired result:
(I didn't use the - before the user/group/other flag in my previous attempts!)Code:find /var/log -type f \( -perm -u=x -o -perm -g=w -o -perm -o=rw \)
RHCE #100-015-395
Please don't PM me with questions as no reply may offend, that's what the forums are for.


Reply With Quote
