Error when login thru ssh in TOS 5

IPv4/6, Port, VPN, proxy, SSH, remote access and more.
Locked
User avatar
Cafsenra
Posts: 18
Joined: 20 Jul 2020, 00:57

Error when login thru ssh in TOS 5

Post by Cafsenra »

I am getting a error after updating to TOS 5 when I login to tnas thru ssh:

Code: Select all

Welcome to Tnas!
ln: failed to create symbolic link '/usr/local/lib/lib': File exists
ln: failed to create symbolic link '/usr/local/lib64/lib64': File exists
This error seems not to affect system operation but it is annoying.

Can anyone tell me if is having this issue and how to solve it?
DevOps Engineer. Software Developer on free time ;)
User avatar
Cafsenra
Posts: 18
Joined: 20 Jul 2020, 00:57

Re: Error when login thru ssh in TOS 5

Post by Cafsenra »

I was able to solve this issue by comment the lines in the file stated below:

Code: Select all

cat /etc/profile.d/buildtools.sh
#!/bin/bash
ROOT_PATH=$(dirname $(dirname $(dirname $(dirname $(readlink -f "${BASH_SOURCE[0]}")))))
# ln -s "$ROOT_PATH/lib" /usr/local/lib
# ln -s "$ROOT_PATH/lib64" /usr/local/lib64
export PATH=$PATH:$ROOT_PATH/bin
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/lib
I don't understand how can be a ln command be set to run always when you login to the system. Obviously, only works once.
DevOps Engineer. Software Developer on free time ;)
Locked

Return to “Network & Remote Access”