Page 1 of 1
Forum

Welcome to the Tweaking4All community forums!
When participating, please keep the Forum Rules in mind!

Topics for particular software or systems: Start your topic link with the name of the application or system.
For example “MacOS X – Your question“, or “MS Word – Your Tip or Trick“.

Please note that switching to another language when reading a post will not bring you to the same post, in Dutch, as there is no translation for that post!



QNAP - SSH - How to...
 
Share:
Notifications
Clear all

[Solved] QNAP - SSH - How to disable the console "menu" at login

1 Posts
1 Users
0 Reactions
8,251 Views
 Hans
(@hans)
Famed Member Admin
Joined: 11 years ago
Posts: 2728
Topic starter  

For some reason QNAP thought it to be "good" to start some management menu when doing an SSH login.
Obviously, nobody asked for this, and it is not only super annoying, but also potentially interferes with certain SSH functions.

To disable this, you have 2 options:

1) Recommended: Disable this in the web user interface (depends a little on the QTS version your QNAP is running)

Goto "Control Panel" - "General Settings" (in the "System" section) - "Console Management".
There you uncheck the option "Enable Console Management" and click "Apply".

2) If you QNAP does not have the option in "Control Panel".

SSH into your QNAP and edit the file

/etc/profile

find the line (most likely the last line) that starts with:

[[ "admin" = "$USER" ]] && /sbin/qts-console-mgmt -f

 

Comment out this line (add a "#" in front of it).

Alternatively, you can use this one liner that you can run in the shell directly (I recommend doing this manually though):

sed -r -i.bak 's/^(.*admin.*qts-console-mgmt.*)$/#\1/' /etc/profile

   
ReplyQuote
Share: