How to change owner and group of a directory and all its subfolders (linux command)

What command changes the Group setting for a directory?

chown -R owner:group .

Using the . after the owner:group declaration allows you to change all current folder and subfolders including hidden files.

CHECK CAREFULLY THE CURRENT LOCATION BEFORE YOU USE THIS!! Or you may change owner and group of the whole system if you are in the root folder for example.

Posted in Server management and tagged , , , , , .

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.