From: Rahul on 8 Feb 2010 18:05 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 8 Feb 2010 20:49 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 11 Feb 2010 00:38 "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 11 Feb 2010 01:30 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 :-)
|
Pages: 1 Prev: Kernel messages about hard drives Next: shebang and ubuntu |