We build software running on Linux servers (Centos)
We don’t want the customer to have access to the Linux server, but the customer sometimes need to know the ipaddress of the server.
So my question is: Is it possible to display the ipaddress at the loginscreen (no graphical interface), that means, before the user has logged in?
Michael
Yes, it is possible. If you’re talking about a text console, then you just need to create a shell script that executes this command:
Then change
/etc/inittabso that it runs that shell script ontty2instead ofgetty. The user then just has to switch totty2with ALT+2 to see the network settings, including IP address.You can also do it if you have a graphical X login, but it’s a little more work.