Navigate to the Group you want to make changes and click Edit. From the right page settings menu click on Privacy. Choose a privacy type and save.
If you select private, you will have a lot of control over who can or cannot join your group, and who can or cannot see posts posted to the group. If you select Public as your privacy mode, it means anyone can freely join your group, comment on posts, and post and share posts.