Several fixes for privilege ROOT