Added user switching from root and made auth configurable