Bug 15439 - finger and w show numerical IPs instead of hosts
Summary: finger and w show numerical IPs instead of hosts
Keywords:
Status: CLOSED DEFERRED
Alias: None
Product: Red Hat Linux
Classification: Retired
Component: util-linux
Version: 7.0
Hardware: i386
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Crutcher Dunnavant
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2000-08-04 19:23 UTC by Christian Rose
Modified: 2008-05-01 15:37 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2000-08-25 13:18:24 UTC
Embargoed:


Attachments (Terms of Use)
/etc/hosts (266 bytes, text/plain)
2000-08-04 19:23 UTC, Christian Rose
no flags Details
/etc/host.conf (17 bytes, text/plain)
2000-08-04 19:32 UTC, Christian Rose
no flags Details

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




Note You need to log in before you can comment on or make changes to this bug.