I want to check if a normal user has super user privileges. For example, I run a script as user bond
in my run.sh I want to find out if bond
has super user privileges, i.e he/she can run sudo command.
Is it possible? Consider I can't read /etc/sudoers file. I don't wan't to ask for password and then fail. I just want to say:
"You don't have sudo privileges... aborting"