Under the profile you wish to change, scroll to the File and Printer Sharing section and click Turn Off File and Printer Sharing (or Turn On File and Printer Sharing). Click Save Changes.
Follow these steps again as needed to turn on or off file and printer sharing again.