[tac_plus] Please help with tac_plus

Philip Prindeville philipp_subx at redfish-solutions.com
Mon May 16 22:16:28 UTC 2022


Actually, you don't need "[[" as it's a bashism.  I'd try:

[ "${NETWORKING}" = "no"] && exit 0

instead.



> On May 16, 2022, at 1:58 PM, Elliot Johnson <elliot.johnson at hayley-group.co.uk> wrote:
> 
> I changed the line 22 in the init script from:
> 
> [ ${NETWORKING} = "no" ] && exit 0
> to
> [[ ${NETWORKING} = "no" ]] && exit 0
> 
> and it seems to be behaving now.
> 
> Thanks for pointing out the script that it was actually referring to 🙂
> 
> Cheers all
> 
> Elliot
> From: Philip Prindeville <philipp_subx at redfish-solutions.com>
> Sent: 16 May 2022 20:16
> To: heasley <heas at shrubbery.net>
> Cc: Elliot Johnson <elliot.johnson at hayley-group.co.uk>; tac_plus at shrubbery.net <tac_plus at shrubbery.net>
> Subject: Re: [tac_plus] Please help with tac_plus
>  
> 
> 
> > On May 16, 2022, at 12:42 PM, heasley <heas at shrubbery.net> wrote:
> > 
> > Mon, May 16, 2022 at 05:27:09PM +0000, Elliot Johnson:
> >> Hello,
> >> 
> >> We are trying to run tac_plus version F4.0.4.26 on a CentOS 7 box.
> >> 
> >> We have a config with a group section like this:
> >> 
> >> group = netadmin {
> >>    default service = permit
> >>    acl             = hgl
> >>    service         = exec {
> >>                        priv-lvl = 15
> >>                      }
> >> }
> >> 
> >> When we start the tac_plus process, we get this reported by systemd:
> >> 
> >> May 16 18:23:06 g000063 tac_plus[19305]: /etc/rc.d/init.d/tac_plus: line 22: [: =: unary operator expected
> >> 
> >> Line 22 is "default service = permit"
> >> 
> >> What is the syntax we should use for this config entry? All the online guides only suggest what we have already put.
> > 
> > Your syntax looks correct.  I expect that you either have unprintable
> > characters on line 22 or there is an error on a preceding line that is
> > trickling down to line 22.
> > 
> 
> 
> Is it the config file it's complaining about, or the init.d script?  Can you include "cat -n /etc/rc.d/init.d/tac_plus"?
> 
> 
> 
> Company No: 1257303 VAT No: GB 292 0546 04 The information contained in this e-mail is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. If you are not the intended recipient of this e-mail, the use of this information or any disclosure, copying or distribution is strictly prohibited and may be unlawful. If you received this e-mail in error, please contact the sender immediately and delete the material from any computer. The views expressed in this e-mail may not necessarily be the views of Hayley Group Limited and should not be taken as authority to carry out any instruction contained within.



More information about the tac_plus mailing list