Computing.Net > Forums > Linux > Disable hostname in login prompt

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Click here to start participating now! Also, check out the New User Guide.

Disable hostname in login prompt

Reply to Message Icon

Name: laurence
Date: June 4, 2004 at 04:55:20 Pacific
OS: linux
CPU/Ram: i686
Comment:

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



Sponsored Link
Ads by Google

Response Number 1
Name: 3Dave
Date: June 4, 2004 at 06:02:22 Pacific
Reply:

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"...


0

Response Number 2
Name: laurence
Date: June 4, 2004 at 06:16:21 Pacific
Reply:

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


0

Response Number 3
Name: Wolfbone
Date: June 4, 2004 at 07:20:13 Pacific
Reply:

man issue.net


0

Response Number 4
Name: 3Dave
Date: June 7, 2004 at 01:14:48 Pacific
Reply:

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


0

Response Number 5
Name: laurence
Date: June 7, 2004 at 16:07:38 Pacific
Reply:

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


0

Related Posts

See More



Response Number 6
Name: Wolfbone
Date: June 7, 2004 at 18:26:52 Pacific
Reply:

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.


0

Response Number 7
Name: 3Dave
Date: June 8, 2004 at 09:02:08 Pacific
Reply:

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....


0
Reply to Message Icon

SuSE 9.0 installation pro... Mandrake 10 installation.



Post Locked

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


Go to Linux Forum Home


Sponsored links

Ads by Google


Results for: Disable hostname in login prompt

Unable to ping hostname in client www.computing.net/answers/linux/unable-to-ping-hostname-in-client/27226.html

Telnet hostname www.computing.net/answers/linux/telnet-hostname/15863.html

Instralled Redhat, stuck in shell prompt www.computing.net/answers/linux/instralled-redhat-stuck-in-shell-prompt/12433.html