From: Rahul on
My sudoers has a Default "requiretty" that prevents sudo commands in
scripts etc. I had a situation where I'd like to allow this for a
particular user+command combination. [am running a remote reboot script as
a specific system user]

I dislike the too-broad approach of just removing the "Defaults
requiretty" line.

Is it possible to just allow a certain sudo directive to be OK even without
a tty?

--
Rahul
From: Mumia W. on
On 02/08/2010 05:05 PM, Rahul wrote:
> My sudoers has a Default "requiretty" that prevents sudo commands in
> scripts etc. I had a situation where I'd like to allow this for a
> particular user+command combination. [am running a remote reboot script as
> a specific system user]
>
> I dislike the too-broad approach of just removing the "Defaults
> requiretty" line.
>
> Is it possible to just allow a certain sudo directive to be OK even without
> a tty?
>

This is just a WAG:

In /etc/sudoers:
Defaults>rahul !requiretty

From: Rahul on
"Mumia W." <paduille.4061.mumia.w+nospam(a)earthlink.net> wrote in
news:H9udncowUbbbfe3WnZ2dnUVZ_oudnZ2d(a)earthlink.com:

> This is just a WAG:
>
> In /etc/sudoers:
> Defaults>rahul !requiretty

Almost! :)

This worked for me:

Defaults:rahul !requiretty



--
Rahul
From: Mumia W. on
On 02/10/2010 11:38 PM, Rahul wrote:
> "Mumia W." <paduille.4061.mumia.w+nospam(a)earthlink.net> wrote in
> news:H9udncowUbbbfe3WnZ2dnUVZ_oudnZ2d(a)earthlink.com:
>
>> This is just a WAG:
>>
>> In /etc/sudoers:
>> Defaults>rahul !requiretty
>
> Almost! :)
>
> This worked for me:
>
> Defaults:rahul !requiretty
>
>
>

Well I'm glad I could help :-)