Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Is there a way I can list ordinary files that are unreadable by a group in Unix?

What would be the necessary code for that?

And can I do it without using the find command?

share|improve this question
    
Files in one directory or across a file system? –  Steve N Apr 17 '13 at 14:40
1  
There is a slight unclearness in your question: unreadable by any group (meaning perms without group read for anyone?) or just not readable by a specific group? –  Rich Homolka Apr 17 '13 at 14:49

1 Answer 1

It depends, which shell you are using. With zsh that following will do the trick:

ls -dl *(^A)

ls -dl prints a long (l) list without digging into directories (d). The more interesting part is the globbing part, where A would select only group-readable objects, combined with an inversion ^ this is what you want.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.