Find the answer to your Linux question:
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.
  1. #1
    Linux Engineer RobinVossen's Avatar
    Join Date
    Aug 2007
    Location
    The Netherlands
    Posts
    1,429

    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?
    New Users, please read this..
    Google first, then ask..

  2. #2
    Just Joined! sathiya's Avatar
    Join Date
    Feb 2008
    Location
    Bangalore, India
    Posts
    97
    irrespective of other permissions, then you should try -g=rw.

    refer #7 here: Mommy, I found it! — 15 Practical Linux Find Command Examples

  3. #3
    Linux Engineer RobinVossen's Avatar
    Join Date
    Aug 2007
    Location
    The Netherlands
    Posts
    1,429
    Thanks =)
    That helped alot
    New Users, please read this..
    Google first, then ask..

  4. #4
    Linux 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.

  5. #5
    Linux Enthusiast
    Join Date
    Aug 2006
    Location
    Portsmouth, UK
    Posts
    539
    This appears to give the desired result:

    Code:
    find /var/log -type f \( -perm -u=x -o -perm -g=w -o -perm -o=rw \)
    (I didn't use the - before the user/group/other flag in my previous attempts!)
    RHCE #100-015-395
    Please don't PM me with questions as no reply may offend, that's what the forums are for.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •