SUMMARY: active sudoers file

From: Johnny Tran <jtjtjt_at_gmail.com>
Date: Wed Aug 16 2006 - 02:51:18 EDT
Thanks to

Charles Morris <cmorris@cs.odu.edu>
Niclas Sodergard <nickus@gmail.com>
Peter Ondruska <peter.ondruska@intese.cz>
Anthony D'Atri <aad@verio.net>


1. strings - sudo | grep /sudoers
2. truss -o /tmp/output sudo, then have a look for the line similar to "
open("/etc/sudoers", O_RDONLY) "

On 16/08/06, Andrew Li <andrew.li@ac3.com.au> wrote:
>
> On Wed, Aug 16, 2006 at 02:52:33PM +1000, Johnny Tran wrote:
> > How do I determine which 'sudoers' file is active on the system?
>
> You can try to find it in /var/sadm/pkg/install or do a find(1) for it.
>
> > Some servers have /etc/sudoers and some others use
> /usr/local/etc/sudoers
>
> Maybe under /opt.
>
> > sudo -V does not tell me which sudoers location it is using for
> > configuration.
>
> It would be nice if pkginfo can produce a list of files installed for that
> package.
>
> > I am trying to add a userid to the sudoers on many servers, however the
> > location differs from server to server.
>
> If you got the file from sunfreeware, it's normally in /opt/sfw/etc.
>
> Andrew
_______________________________________________
sunmanagers mailing list
sunmanagers@sunmanagers.org
http://www.sunmanagers.org/mailman/listinfo/sunmanagers
Received on Wed Aug 16 02:52:11 2006

This archive was generated by hypermail 2.1.8 : Thu Mar 03 2016 - 06:44:00 EST