set permissions before usercreation bug

Signed-off-by: Alexander Skjolden <alex@plastboks.net>