jreidinger: Yes, that's a good point. I have fixed.
jsuchome: I have removed the writing part of root password in setup_all_users and have tried out your described test scenario and his has worked correctly.