Tom's Guide | Tom's Hardware | Tom's Games
![]() |
![]() |
![]() |
Hello, how can I disable hostname in login prompt when connecting via teklnet to linux box.
I have now hostname login:
But I don't want to see hostname
Can anyone help?
belov

You can use SSH instead and create some
public and private keys, allowing you to
login without having to supply a username
and password. For more info "man ssh"...

No I mean exactly using the telnet as I will connect mobile device using embedded telnet
When I connect to Linux via telnet , Linux asks me to enter login and password.
LINUXHOSTNAME login:
password:But I want to disable LINUXHOSTNAME in the login prompt in order only
login:
password:will be appeared. Who knows how to do such thing? Modifying /etc/gettydefs and /etc/default/telnetd was not helpful.
belov

Your (bash) prompt is generally controlled
by /etc/profile by the PS1 variable. Try
changing it to something like:
PS1="$ "

Hey, guys
Seems that nobody can understand the issue.
issue.net will not change the behavior of login prompt which is by default
linuxhostname login:
PS1 environment is invoked when you entered system already, but in my case I want to disable linuxhostname before login into system, in order just
login:
appeared when I connect to server via telnet.
I have found in.telnetd -g gettyenv parameter which can change this behaviour. The parameters can be in /etc/gettytab file, but Linux Suse doesn't read them and ignore at all!
Have anybody experience with it?
belov

We understand it, but since you are using obsolete mechanisms that no-one here is likely to be familiar with, we can only make guesses and suggestions. Maybe someone in the unix forum would know. Failing that you could try comp.os.linux.networking.

OK....I see what you are saying. Try
editing /etc/gettydefs and remove the "@S"
from the login strings. I think its
mgettydefs if you are using mgetty....

![]() |
SuSE 9.0 installation pro...
|
Mandrake 10 installation.
|

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.
| Ads by Google |