Added the ability to switch to socket auth for root