[TriLUG] Help with setuid C wrapper script

Adam Jennings agjennings at gmail.com
Sun Oct 10 11:10:39 EDT 2010


Is it always going to be tail?

You can add a specific command in the sudoers file:

<user> ALL =(ALL) NOPASSWD: /usr/bin/tail [a-zA-Z0-9_-]*

That should let them run any tail command with arguments or something
similar.


Adam Jennings
(910) 783-4323
http://www.linkedin.com/in/agjennings



On Sun, Oct 10, 2010 at 11:05 AM, Clay Stuckey <cstuckey at govsg.com> wrote:

> It works the same. Google sudo tutorial. If you need specific syntax, I can
> look it up. Trust me, this is a good way to achieve your goal.
>
> --
> Clay Stuckey
> (843) 469-5467
> cstuckey at govsg.com
> claystuckey at gmail.com
>
> On Oct 10, 2010, at 10:51 AM, "Ron Kelley" <rkelleyrtp at gmail.com> wrote:
>
> > Appreciate the info, but this is not what I want.  I don't want the user
> added to the wheel group.  I just want a single user to be able to tail the
> /var/log/messages (and other log) files.
> >
> >
> > -Ron
> >
> >
> >
> > On Oct 10, 2010, at 10:43 AM, Clay Stuckey wrote:
> >
> >> %wheel ALL=(ALL) NOPASSWD: ALL
> >>
> >> Add the user to the wheel group. This gives all root commands. You may
> consider restricting their access to the specific commands.
> >>
> >> --
> >> Clay Stuckey
> >> (843) 469-5467
> >> cstuckey at govsg.com
> >> claystuckey at gmail.com
> >>
>



More information about the TriLUG mailing list