Changing folder permissions and its sub folder and files?
Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Changing folder permissions and its sub folder and files?
I need to change permission of a folder with sub folder and files in those subfolders to stream video and mp3's to my PS2 .I can right click each folder and sub folder and then each file in that folder to change permission but is there a quick command to to change permission on the main folder and all sub folders and files change.I need to change the permission in "Other" from none to read so the PS2 can read the files.When I right click and change permission in the main folder it doesnt change permission in subfolders.
I would use the find command to locate all files, and another to locate directories. You need `x' set for directories, but don't want it set for non-executable files.
I'd like to add one small modification to jschiwal's find commands. Change the final "\;" at the end to "\+". The first pattern executes a separate command for each file, but the second runs them in xargs-like batch mode...launching only the minimum number of processes needed to handle the whole file list.
( Be aware though that "\+" only works for commands that are capable of handling multiple files as input, and only if they can be positioned at the end of the argument list. )
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.