first implementation for checking sudo privileges