I want to write a shell script that finds files in a directory that are (owner permissions) readable, writeable, or executable for the owner. But I don't know the command to list files with certain permissions (rwx)... I'm sure it has something to do with ls, but I just can't figure it out. Please help.
cnet1989
Recommended Answers
Jump to PostHey There,
This should get you files that are readable, writable or executable by the user/owner and will keep you from missing directories and such with the grep command:
find /your/base/dir -perm -u+r,u+w,u+x
This way if any combination, or all, of the permissions are set for …
All 4 Replies
Reply to this topic
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.