How to CHOWN all Subfolders and Files?

spot_img

Share This Post

The chown command in Linux may be used to alter the ownership of a directory or a file. This is critical when using scripts or utilities that need certain rights or ownership in order to perform their functions.

This is critical. An excellent example is WordPress’s automatic updating feature. WordPress requires www-data ownership in plugin directories and files.

The chown command can be made to work properly if you observe that ownership isn’t being passed down to subfolders and files.

How to CHOWN all Subfolders and Files?


The -R switch is all that is needed to ensure that chown changes ownership of subfolders and files. Recursively changing ownership is what this move entails.

chown -R USER:GROUP FOLDER

For example: 

chown -R www-data:www-data wp-plugin-folder

How to CHOWN all Subfolders and Files?

That’s all there is to it. To see other switches you can use with chown you can view its documentation.

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Related Posts

6 Best Home Generators

If you live in an area where you experience...

8 Best Portable Workplaces

While most hobbyists, woodworkers, or DIYers enjoy picking the...

How to Choose Best Lift Chair?

For people with physical disabilities and the elderly, getting...

NuWave Brio Air Fryer Review

Craving for some fried goods but scared of the...

Commercial Toaster: Top Picks with Buying Guide and FAQs

Commercial Toaster: Top Picks with Buying Guide and FAQs...

Best SUP Board Leashes

If you’re a paddler, you know how important the...
spot_img
- Advertisement -spot_img