<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<style type="text/css" style="display:none;"> P {margin-top:0;margin-bottom:0;} </style>
</head>
<body dir="ltr">
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 11pt; color: rgb(0, 0, 0);" class="elementToProof">
Hey, thanks for the response <span id="🙂">🙂</span></div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 11pt; color: rgb(0, 0, 0);" class="elementToProof">
<span><br>
</span></div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 11pt; color: rgb(0, 0, 0);" class="elementToProof">
<span>I have already tried deleting the line and retyping to weed out any odd characters, but no luck.</span></div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 11pt; color: rgb(0, 0, 0);" class="elementToProof">
<span><br>
</span></div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 11pt; color: rgb(0, 0, 0);" class="elementToProof">
<span>This is the cat output:</span></div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 11pt; color: rgb(0, 0, 0);" class="elementToProof">
<span><br>
</span></div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 11pt; color: rgb(0, 0, 0);" class="elementToProof">
<span>[root@g000063 ejohnson]# cat -n /etc/rc.d/init.d/tac_plus
<div> 1 #!/bin/bash</div>
<div> 2 #</div>
<div> 3 # description: Cisco's tacacs+ access, authorization, and accounting server.</div>
<div> 4 # chkconfig: 345 15 85</div>
<div> 5 #</div>
<div> 6 ### BEGIN INIT INFO</div>
<div> 7 # Provides: tacacs tacacs+ tac_plus</div>
<div> 8 # Required-Start: $network</div>
<div> 9 # Required-Stop: $network</div>
<div> 10 # Default-Start: 3 4 5</div>
<div> 11 # Short-Description: TACACS+ server based on Cisco source release</div>
<div> 12 # Description: Starts and stops tac_plus TACACS+ server</div>
<div> 13 ### END INIT INFO</div>
<div> 14</div>
<div> 15 # Source function library.</div>
<div> 16 . /etc/rc.d/init.d/functions</div>
<div> 17</div>
<div> 18 # Source networking configuration.</div>
<div> 19 . /etc/sysconfig/network</div>
<div> 20</div>
<div> 21 # Check that networking is up.</div>
<div> 22 [ ${NETWORKING} = "no" ] && exit 0</div>
<div> 23</div>
<div> 24 CONFIG=/etc/tac_plus.conf</div>
<div> 25</div>
<div> 26 [ -f $CONFIG ] || exit 1</div>
<div> 27</div>
<div> 28 [ -r /etc/sysconfig/tac_plus ] && . /etc/sysconfig/tac_plus</div>
<div> 29</div>
<div> 30 # See how we were called.</div>
<div> 31 case "$1" in</div>
<div> 32 start)</div>
<div> 33 # Start daemons.</div>
<div> 34 echo -n "Starting tacacs+: "</div>
<div> 35 daemon /usr/bin/tac_plus -C $CONFIG ${LOGFILE:+-l $LOGFILE} ${WHOLOG:+-w $WHOLOG} ${DEBUG_LEVEL:+-d $DEBUG_LEVEL}</div>
<div> 36 RETVAL=$?</div>
<div> 37 echo</div>
<div> 38 [ $RETVAL == 0 ] && touch /var/lock/subsys/tac_plus</div>
<div> 39 ;;</div>
<div> 40 stop)</div>
<div> 41 # Stop daemons.</div>
<div> 42 echo -n "Shutting down tacacs+: "</div>
<div> 43 killproc tac_plus</div>
<div> 44 RETVAL=$?</div>
<div> 45 echo</div>
<div> 46 [ $RETVAL == 0 ] && rm -f /var/lock/subsys/tac_plus</div>
<div> 47 ;;</div>
<div> 48 status)</div>
<div> 49 status tac_plus</div>
<div> 50 exit $?</div>
<div> 51 ;;</div>
<div> 52 restart)</div>
<div> 53 $0 stop</div>
<div> 54 $0 start</div>
<div> 55 exit $?</div>
<div> 56 ;;</div>
<div> 57 reload)</div>
<div> 58 kill -USR1 `cat /var/run/tac_plus.pid`</div>
<div> 59 ;;</div>
<div> 60 *)</div>
<div> 61 echo "Usage: tacacs {start|stop|status|restart|reload}"</div>
<div> 62 exit 1</div>
<div> 63 esac</div>
<div> 64 exit $RETVAL</div>
[root@g000063 ejohnson]#<br>
</span></div>
<div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 11pt; color: rgb(0, 0, 0);">
<br>
</div>
<div id="Signature">
<div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<b>Elliot Johnson</b> - Infrastructure Manager - Group IT
<div>Hayley Group Limited</div>
<div>Shelah Road, Halesowen, West Midlands, B63 3PG, England</div>
[Tel] +44 (0)121 585 5334 | [Email] <a href="mailto:elliot.johnson@hayley-group.co.uk" title="mailto:elliot.johnson@hayley-group.co.uk">
elliot.johnson@hayley-group.co.uk</a><br>
</div>
</div>
</div>
</div>
<div id="appendonsend"></div>
<hr style="display:inline-block;width:98%" tabindex="-1">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" style="font-size:11pt" color="#000000"><b>From:</b> Philip Prindeville <philipp_subx@redfish-solutions.com><br>
<b>Sent:</b> 16 May 2022 20:16<br>
<b>To:</b> heasley <heas@shrubbery.net><br>
<b>Cc:</b> Elliot Johnson <elliot.johnson@hayley-group.co.uk>; tac_plus@shrubbery.net <tac_plus@shrubbery.net><br>
<b>Subject:</b> Re: [tac_plus] Please help with tac_plus</font>
<div> </div>
</div>
<div class="BodyFragment"><font size="2"><span style="font-size:11pt;">
<div class="PlainText"><br>
<br>
> On May 16, 2022, at 12:42 PM, heasley <heas@shrubbery.net> wrote:<br>
> <br>
> Mon, May 16, 2022 at 05:27:09PM +0000, Elliot Johnson:<br>
>> Hello,<br>
>> <br>
>> We are trying to run tac_plus version F4.0.4.26 on a CentOS 7 box.<br>
>> <br>
>> We have a config with a group section like this:<br>
>> <br>
>> group = netadmin {<br>
>> default service = permit<br>
>> acl = hgl<br>
>> service = exec {<br>
>> priv-lvl = 15<br>
>> }<br>
>> }<br>
>> <br>
>> When we start the tac_plus process, we get this reported by systemd:<br>
>> <br>
>> May 16 18:23:06 g000063 tac_plus[19305]: /etc/rc.d/init.d/tac_plus: line 22: [: =: unary operator expected<br>
>> <br>
>> Line 22 is "default service = permit"<br>
>> <br>
>> What is the syntax we should use for this config entry? All the online guides only suggest what we have already put.<br>
> <br>
> Your syntax looks correct. I expect that you either have unprintable<br>
> characters on line 22 or there is an error on a preceding line that is<br>
> trickling down to line 22.<br>
> <br>
<br>
<br>
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"?<br>
<br>
<br>
<br>
</div>
</span></font></div>
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.
</body>
</html>