checking root permissions in cop