Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 15439

Summary: finger and w show numerical IPs instead of hosts
Product: [Retired] Red Hat Linux Reporter: Christian Rose <menthos>
Component: util-linuxAssignee: Crutcher Dunnavant <crutcher>
Status: CLOSED DEFERRED QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: 7.0CC: bero, pekkas, twaugh
Target Milestone: ---   
Target Release: ---   
Hardware: i386   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2000-08-25 13:18:24 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
/etc/hosts
none
/etc/host.conf none

Description Christian Rose 2000-08-04 19:23:15 UTC
finger and w show numerical IPs instead of hosts on my system, when logging
in on this machine from other hosts.
This system is on a private net so I can't try to log in from a
DNS-resolvable host, but I think my /etc/hosts file is ok. I'll attach it
anyway.

Could this be a bug in glibc?

Comment 1 Christian Rose 2000-08-04 19:23:47 UTC
Created attachment 2035 [details]
/etc/hosts

Comment 2 Christian Rose 2000-08-04 19:32:27 UTC
Created attachment 2036 [details]
/etc/host.conf

Comment 3 Pekka Savola 2000-08-07 07:33:38 UTC
What are you using to log on?   If I use openssh (from redhat.de) to with
'UseLogin Yes' enabled, entries in 'w' show numerically too.  With UseLogin No,
it works fine.

This might be a problem in login.



Comment 4 Christian Rose 2000-08-07 09:13:24 UTC
I too use openssh from redhat.de with the default settings (e.g. UseLogin yes).
I tested it with "no" and then I also get a host instead of an IP.

Moving this to "util-linux", the package containing /bin/login.

Comment 5 Tim Waugh 2000-08-07 14:22:14 UTC
ssh (as opposed to openssh) does not show this behaviour.

Comment 6 Pekka Savola 2000-08-08 18:19:06 UTC
This is probably partly an OpenSSH problem, because FreeBSD-4.1's login also
shows this (actually worse) behaviour.

There are some other issues regarding UseLogin and OpenSSH, but I don't think
this forum should be used for them (possible legal issues?)


Comment 7 Pekka Savola 2000-08-09 08:34:32 UTC
This difference of ssh vs openssh is that ssh probably passes the user's source
address as a hostname to login, not as an IP address as openssh does.  This is
deliberate (IP addresses are
more reliable in ways).

Should login(1) do some resolving of its own if necessary ?


Comment 8 Jeff Johnson 2000-10-09 17:18:07 UTC
My guess is that hostnames only should be passed to login, as tying login
into gethostbyaddr et al needlessly exposes login to more libraries with the
possibility
of exploits, as well as further complicating a critical piece of code. The real
issue
is simply the utmp handling for a login process, and what should be put in the
host field.

Marking DEFERRED to collect other opinions.

Comment 9 Pekka Savola 2000-10-09 17:26:44 UTC
I tend to agree.  This also might create some timeouts and other problems 
if your DNS server isn't responding at the time you're logging in w/ SSH, 
telnet or whatever...