Root permission bugfixes.