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.