"Carlos Enriquez" <enriquezc@terra.com.mx> writes:
> Hello List
>
> I'm also trying to fix this issue, I know that this is due to a security
> problem, I know how it must be fixed, but I don't know what I'm doing wrong
> because it has not been fixed, the lines of the script that I'm modifying
> are listed below, I hope you can help me to find what do I'm doing wrong.
>
> hostname1=$4
> hostname=`echo $hostname1 | sed "s:\\\\\\::g"`
You have not included the error or any of the symptoms of your
difficulty, but I will try to help.
I seem to recall the sed syntax in the NetView release notes not
working for me under AIX at least...something with the quoting of the
sed expression as I recall.
Here's what I use--I specifically replace the backslashes preceeding
legal hostname characters that are non-alphanumeric:
############################################################################
# replace \- \. and \_ with - . and _ respectvely. Required for
# security efix
############################################################################
hostname=$(/usr/bin/echo "$hostname" | /usr/bin/sed 's:\\\([-\._]\):\1:g')
--
Todd H.
http://www.toddh.net/
---------------------------------------------------------------------
To unsubscribe, e-mail: nv-l-unsubscribe@lists.tivoli.com
For additional commands, e-mail: nv-l-help@lists.tivoli.com
*NOTE*
This is not an Offical Tivoli Support forum. If you need immediate
assistance from Tivoli please call the IBM Tivoli Software Group
help line at 1-800-TIVOLI8(848-6548)
|