Create a Post
cancel
Showing results for 
Search instead for 
Did you mean: 
Franktum
Contributor
Jump to solution

Weird message when logging in

Hi all:

Yesterday we upgraded an 5400 appliance to R81.10 Take 130. Since then, when you log in this message shows up:

End of banner message from server
admin@192.168.x.x's password:
Last login: Fri Apr 19 08:49:52 2024 from 192.168.x.x
if: Expression Syntax.
then: Command not found.
[admin@gw01 ~]#

We are still checking the logs files of the system but nothing found yet. It seems the interpreter line from a script is incorrect but, which one?

Any idea?

Thanks in advanced

Regards

1 Solution

Accepted Solutions
Franktum
Contributor

Hi,

We fixed it by changing the admin shell from /bin/csh to /bin/bash.

Thank you for your answers!

Regards

View solution in original post

10 Replies
Lesley
Mentor Mentor
Mentor

Can you try to change the banner message? Maybe there is a weird character in it or something? Maybe go back to something default like: This system is for authorized use only.

You can change the banner in the webGUI -> System Management -> Messages -> Banner Message

Or via CLI

-------
If you like this post please give a thumbs up(kudo)! 🙂
Franktum
Contributor

Hi Lesley,

Thanks for your answer. I changed the banner message but the message is still there:

Using username "admin".
Pre-authentication banner message from server:
| This system is for authorized use only
End of banner message from server
admin@192.168.x.x's password:
Last login: Fri Apr 19 09:36:48 2024 from 192.168.x.x
if: Expression Syntax.
then: Command not found.
[admin@gw01 ~]#

Regards

Lesley
Mentor Mentor
Mentor

Have you done a reboot? And tested with different SSH user? 

I am afraid what Albrecht also states that probably a reinstall is needed. You can try with TAC for them to check.

I cannot find any open bugs or relevant SK's.

-------
If you like this post please give a thumbs up(kudo)! 🙂
G_W_Albrecht
Legend Legend
Legend

I would suggest to do a fresh install of the GW, looks like some file corruption to me.

 

CCSP - CCSE / CCTE / CTPS / CCME / CCSM Elite / SMB Specialist
Franktum
Contributor

Hi,

We fixed it by changing the admin shell from /bin/csh to /bin/bash.

Thank you for your answers!

Regards

the_rock
Legend
Legend

That was first thing that came to my mind when I read your post. You can always change it to /etc/cli.sh if you dont want to go to expert mode when logging in

example -> chsh -s /etc/cli.sh admin

Best,

Andy

G_W_Albrecht
Legend Legend
Legend

Strange ! That has changed during upgrade? Or just no banner issue before upgrade?

 

CCSP - CCSE / CCTE / CTPS / CCME / CCSM Elite / SMB Specialist
Franktum
Contributor

The banner was configured before the upgrade yes. Don't know why this message showed up after it.

G_W_Albrecht
Legend Legend
Legend

And you did not start admin session in expert mode previously? Mostly done for WinSCP connect...

 

CCSP - CCSE / CCTE / CTPS / CCME / CCSM Elite / SMB Specialist
Franktum
Contributor

Yes, I did several days before the upgrade in order to transfer the 81.10 images (81.10 base and JHF).

Leaderboard

Epsum factorial non deposit quid pro quo hic escorol.

Upcoming Events

    CheckMates Events