• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 231
  • Last Modified:

Changing permissions on files in multiple subdirectories

I wanted to change the permissions for jpg files in subdirectories that are two to three levels deep, but wanted to leave the directory permissions intact.
I figure I should be using this command, but with some added options?
chmod -R 666 *.jpg
0
eastwop
Asked:
eastwop
1 Solution
 
Duncan RoeSoftware DeveloperCommented:
find . -name '*.jpg' -type f -print|xargs chmod 666
0
 
eastwopAuthor Commented:
Thanks - that worked like a treat.....and thanks for the FAST response!!
0

Featured Post

Free learning courses: Active Directory Deep Dive

Get a firm grasp on your IT environment when you learn Active Directory best practices with Veeam! Watch all, or choose any amount, of this three-part webinar series to improve your skills. From the basics to virtualization and backup, we got you covered.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now