Someone had the great idea to issue this command "chmod -R 0777 /home" and I'm looking for ways to recover from this situation.I would save users and ibays contents, delete and recreate them with lazy-tools.
Probably not the best way to do it. Most (maybe all) permissions under /home are predictable, so you should be able to restore them to correct settings via scripting.
signal-event ibay-modify ibayname