Sudoers list?

Florian Diesch diesch at
Sat Apr 8 21:18:38 UTC 2006

Daniel Carrera <daniel.carrera at> wrote:

> I'm writing a script. How can I find out, from the script, if the
> current user is in the sudoers list?

This lists what the user is allowed to use with sudo:
 echo|sudo -l -S

No no no! In maths things are usually named after Euler, or the first
person to discover them after Euler.
[Steven D'Aprano in <pan.2005. at>]

More information about the ubuntu-users mailing list