Koozali.org: home of the SME Server

Can Not set "ConsoleMode auto" to work

Offline paulfung

  • **
  • 38
  • +0/-0
    • http://www.datayard.com
Can Not set "ConsoleMode auto" to work
« on: November 17, 2014, 05:56:48 AM »
Dear All,

Did anyone experience the same problem like me ?

My customer like to see the SME console but not a login prompt in their server screen, as they can see some detail on the server screen and know everything is working fine, in SME8 it work fine.

But I found that even if I set the ConsoleMode to auto in SME 9 by :

# config set ConsoleMode auto
# signal-event post-upgrade
# signal-event reboot

Still I can't boot up the server with the console screen, all I have not matter what I set is just the login prompt.

Is it my typo or is it a bug ? Or is it just happen in SME 9 (x86_64) ?  If it is a bug, I can raise it .....

Anyone care to give a try ?

Best regards,

Paul
Best Regards,

Paul T.C.Fung
  :lol:  :hammer:

guest22

Re: Can Not set "ConsoleMode auto" to work
« Reply #1 on: November 17, 2014, 07:09:20 AM »
Anyone care to give a try ?

Hi Paul,

I can confirm that setting ConsoleMode to auto (your procedure above) will not result in expected behaviour. Can you raise bug please?

guest

Offline TerryF

  • grumpy old man
  • *
  • 1,847
  • +6/-0
Re: Can Not set "ConsoleMode auto" to work
« Reply #2 on: November 17, 2014, 03:29:12 PM »
This has been depreciated in SME9

See http://wiki.contribs.org/DB_Variables_Configuration "Console Mode "
--
qui scribit bis legit

Offline smeghead

  • *
  • 563
  • +0/-0
Re: Can Not set "ConsoleMode auto" to work
« Reply #3 on: December 01, 2014, 08:41:24 AM »
Can I ask why this has been deprecated?

The console just auto loading makes it very easy to support users when they want to test their Internet connection.

If removed for physical security issues can we have the option to enable in server manager if the server is secure.

TIA
..................

Offline stephdl

  • *
  • 1,523
  • +0/-0
    • Linux et Geekeries
Re: Can Not set "ConsoleMode auto" to work
« Reply #4 on: December 01, 2014, 08:57:34 AM »
Hi

If you issue is only to test if your user have internet, then I would suggest to install sme9admin mainly because you have a graph with a ping to google.fr
See http://wiki.contribs.org/Koozali_Foundation
irc : Freenode #sme_server #sme-fr

!!! Please write your knowledge to the Wiki !!!

Offline smeghead

  • *
  • 563
  • +0/-0
Re: Can Not set "ConsoleMode auto" to work
« Reply #5 on: December 01, 2014, 09:02:05 AM »
.. the whole point is that the person doing the check requires no username/password access to anything, just go to console, scroll to option, enter.

The KISS principle in action  :).
..................

guest22

Re: Can Not set "ConsoleMode auto" to work
« Reply #6 on: December 01, 2014, 09:32:55 AM »
Testing internet connections is more then just selecting the option. If it says "No internet Connection" What happens next for the person with obviously limited skills or no root/admin access, for he needs to use this option at all.

What are you checking in the first place? for Internet Connection is a complex mesh of dots, and I don't know how one has designed the pattern to connect the dots he wants.




Offline stephdl

  • *
  • 1,523
  • +0/-0
    • Linux et Geekeries
Re: Can Not set "ConsoleMode auto" to work
« Reply #7 on: December 01, 2014, 11:45:04 AM »
.. the whole point is that the person doing the check requires no username/password access to anything, just go to console, scroll to option, enter.

The KISS principle in action  :).

I understand but an access without password to the console is a flaw...anyone can reconfigure the server and do a mess
See http://wiki.contribs.org/Koozali_Foundation
irc : Freenode #sme_server #sme-fr

!!! Please write your knowledge to the Wiki !!!

Offline smeghead

  • *
  • 563
  • +0/-0
Re: Can Not set "ConsoleMode auto" to work
« Reply #8 on: December 01, 2014, 02:02:01 PM »
.. yes, true, but I think you missed this part of my post:

If removed for physical security issues can we have the option to enable in server manager if the server is secure.
..................

Offline stephdl

  • *
  • 1,523
  • +0/-0
    • Linux et Geekeries
Re: Can Not set "ConsoleMode auto" to work
« Reply #9 on: December 01, 2014, 04:55:49 PM »
I guess no....sorry but we could imagine a contrib whose aims to ping outside of the local network....
« Last Edit: December 01, 2014, 05:02:52 PM by stephdl »
See http://wiki.contribs.org/Koozali_Foundation
irc : Freenode #sme_server #sme-fr

!!! Please write your knowledge to the Wiki !!!

Offline Stefano

  • *
  • 10,894
  • +3/-0
Re: Can Not set "ConsoleMode auto" to work
« Reply #10 on: December 01, 2014, 05:00:13 PM »
if a "normal" user (or anybody) has physical access to your server, there's no secure server (first rule about security)
« Last Edit: December 01, 2014, 05:45:00 PM by Stefano »

guest22

Re: Can Not set "ConsoleMode auto" to work
« Reply #11 on: December 01, 2014, 05:44:17 PM »
I guess no....sorry but we could imagine a contrib whose aims to ping outside of the local network....


I agree, the 'console' applications has too many functions. It could be split up into more wisely applications, where each aplication can be assigned to a user or group.

Offline smeghead

  • *
  • 563
  • +0/-0
Re: Can Not set "ConsoleMode auto" to work
« Reply #12 on: December 01, 2014, 09:35:31 PM »
.. this is not true, if any one not authorised has access it would be true

I see value in maybe a couple of different menus that could be presented, a limited & a full version.

if a "normal" user (or anybody) has physical access to your server, there's no secure server (first rule about security)
..................

Offline Stefano

  • *
  • 10,894
  • +3/-0
Re: Can Not set "ConsoleMode auto" to work
« Reply #13 on: December 01, 2014, 09:49:51 PM »
"authorized" does not necessarily means "smart" or "skilled"

if so instead, he can be easily guided to login and run console

anyway, to check for internet connection you don't need to access to server's console
from any client:
a) ping to server/gateway
b) ping to an outside IP
c) ping to a external hostname

a) server is unreacheable
b) connection is down
c) dns problem

that's all, or am I missing something? :-)



Offline paulfung

  • **
  • 38
  • +0/-0
    • http://www.datayard.com
Re: Can Not set "ConsoleMode auto" to work
« Reply #14 on: December 02, 2014, 08:11:03 AM »
Did agree to some of your points, but if the server are not physically secured, anyone can do a reboot and enter "Single mode" to get all access, with his hand physically touching the server keyboard.

To re-enable the server console are not that difficult you just need to alter a few lines of code, if you feel comfortable, just go ahead to do it.

In SMEserver, The different is in /etc/inittab

If Boot to console :
# Run gettys in standard runlevels
1:123457:respawn:/sbin/e-smith/console tty1

If Boot with login Prompt :
# Run gettys in standard runlevels
1:123457:respawn:/sbin/mingetty tty1

Setting can be done via : /etc/e-smith/templates/etc/inittab

The reason I do a bug report, is to help making SME server better by putting right info in the Wiki and How to, I guess giving a hand to help is a better choice that to question why.

Yes, I agreed that a cut down version is need if a console has to be used, putting a login prompt sound like a cutting down on the original SME Server function to me.

Why not we either do a cut down on all "not secure" function, and leave the Intertest test, Raid info panel, and server-manager panel, and put a login require on the config section ?  I will try it in my XMas holiday.... hope I really know what I am doing.....

Just my 2 cents.

Best regards,

Paul
Best Regards,

Paul T.C.Fung
  :lol:  :hammer: