Every few days, all iCloud accounts are logged out, help!! The computer would ask me to login to Messages again, Facetime again. Email would be turned off, I have to reenable it from the icloud panel.
1. Sign out from icloud on the mac
2. open up keychain access and remove all instances of the icloud account
3. restart the computer and setup icloud again.