[sudo-users] Find out which sudoers file is been used

Todd C. Miller Todd.Miller at courtesan.com
Tue Jul 3 07:34:52 EDT 2007

In message <3f5fb1ce0707030233n6de8e9bcx2b71322f85d5bd3d at mail.gmail.com>
	so spake "Poonam Pandey" (poonamdp3):

> I have sudo installed on my machine but it is not using the sudoers file at
> the standard location /etc/sudoers.
> Instead it is using the sudoers file from some other location.
> If sudo is installed on the machine, how can I find out the location from
> which it is using the sudoers file.

Try this (you may need to be root)
    strings /path/to/sudo | grep /sudoers

where "/path/to/sudo" is /usr/bin/sudo, /usr/local/bin/sudo
or whereever it is installed.

 - todd

More information about the sudo-users mailing list