modify some permissions, fix sns login bugs