[TriLUG] Help with setuid C wrapper script
Clay Stuckey
cstuckey at govsg.com
Sun Oct 10 11:20:41 EDT 2010
You could also modify the group ownership of the files to be read and put your user in that group.
--
Clay Stuckey
(843) 469-5467
cstuckey at govsg.com
claystuckey at gmail.com
On Oct 10, 2010, at 11:11 AM, "Adam Jennings" <agjennings at gmail.com> wrote:
> 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
>>>>
>>
> --
> This message was sent to: Clay Stuckey <cstuckey at govsg.com>
> To unsubscribe, send a blank message to trilug-leave at trilug.org from that address.
> TriLUG mailing list : http://www.trilug.org/mailman/listinfo/trilug
> Unsubscribe or edit options on the web : http://www.trilug.org/mailman/options/trilug/cstuckey%40govsg.com
> TriLUG FAQ : http://www.trilug.org/wiki/Frequently_Asked_Questions
More information about the TriLUG
mailing list