This will change the group of /opt folder, subfolders and files to a existing admin group `sudo` that you will likely be apart of as an admin.
sudo chgrp -R sudo /opt
Add `+` `w`rite permission for `g`roup for the /opt folder, subfolders and files
sudo chmod -R g+w /opt