Greetings,
Correction, retraction
Ok so, the runuser command runs out of ripcd with is running under root so
it should work just fine.

But RN still not working.

Tim


On Fri, Oct 23, 2020, 11:57 PM Tim Camp <[email protected]> wrote:

> Greetings,
>
> Thanks for those who emailed me with suggestions, however this is still a
> no go.
>
> I would like to point out that as of version 3 this is a different thing
> than it was in version 2.
>
> According to the rivendell operations guide
> ******************************************
> 13.8.37. Run Shell Command [RN]
> Module ripcd(8)
> Mnemonic RN
> Run a shell command.
> RN cmd!
> Run the shell command cmd.
>
> Note
>
> *The command is actually executed as:runuser -u user -g group cmd*
> where user and group are the values specified by the "RnRmlOwner=" and
> "RnRmlGroup="
> directives in the "[Identity]" section of rd.conf(5). See the runuser(1)
> man page for details
> concerning handling of the process environment.
> *****************************************
>
> The bold entry I have noted would seem to be important because if you
> specify
> RnRmlOwner=anyuser (except root)  and   RnRmlGroup=anygroup
> for example
>
> then the command runuser will fail because according to "man runuser"
> -g, --group=group
>               specify  the primary group,
>
> *this option is allowed for root user              only*
>
> so according to the documentation the only user you could specify that
> would work is root.
> This works in a terminal
>
> In Rivendell, Guess what? That doesn't work either.
>
> According to man runuser default path is /usr/local/bin thats where my
> scripts are
> the default env is /bin/bash or /bin/sh or /usr/bin/bash I'm all good with
> that
>
> My scripts run from the command line perfectly
>
> in a terminal "runuser -u root -g root cmd" runs perfection
> so the verdict is it should work except it doesn't
>
> Tim Camp
> WZEW-FM
>
>
>
>
>
> On Fri, Oct 23, 2020 at 1:49 PM Tim Camp <[email protected]> wrote:
>
>> Greetings,
>>
>> New install on CentOS 7 of Rivendell 3.4.1
>>
>> This is day number two of trying every possible thing I can think of as
>> to why this doesn't work.
>>
>> Things I have tried.
>>
>> 1. various settings for RNRmlOwner
>> rd rivendell
>> root root
>> rd users
>> rd rd
>>
>> 2. paths
>> RN with full path
>> RN without full path
>> changing $PATH
>>
>> 3. Running env
>> running the scripts with sh
>> running in bash
>>
>> Am I missing something?
>>
>> These scripts contain commands to control our consoles
>> which turn on channels, route audio, mute channels, etc
>> The scripts send data via udp to the console using /dev/udp
>> I have not had a problem with then in version 2.*
>> The scripts run fine in terminal as any user.
>>
>> Thanks for any thoughts or help on this.
>>
>> Tim Camp
>> WZEW-FM
>> Mobile, Al.
>>
>>
>>
>>
_______________________________________________
Rivendell-dev mailing list
[email protected]
http://caspian.paravelsystems.com/mailman/listinfo/rivendell-dev

Reply via email to