On Tue, Apr 04, 2006 at 08:00:27PM +0100, Daniel Carrera wrote:
> I'm writing a script. How can I find out, from the script, if the
> current user is in the sudoers list?
This may be of help, from sudo(1):
-l The -l (list) option will list out the allowed (and
forbidden) commands for the user on the current host.