Sudoers list?

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


Daniel Carrera <daniel.carrera at zmsl.com> 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



   Florian
-- 
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.11.22.10.29.25.388240 at REMOVETHIScyber.com.au>]




More information about the ubuntu-users mailing list