Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

Debian 9 - not display name /etc/hosts

Linux Kernel, Network, and Services configuration.
Post Reply
Message
Author
wimpactus
Posts: 3
Joined: 2017-10-02 19:25

Debian 9 - not display name /etc/hosts

#1 Post by wimpactus »

Hi,

In debian 7, will configure name in /etc/host,

Example: /etc/hosts
192.168.205.1 test-pc

when running a who -u, it shows the name configured in /etc/hosts in debian 7. works perfect.

when running a who -u in Debian 9, not display the name configured in /etc/hosts, display the IP.

what's different about debian 9 from debian 7 in this configuration?

Rgs,

Win

cronoik
Posts: 310
Joined: 2015-05-20 21:17

Re: Debian 9 - not display name /etc/hosts

#2 Post by cronoik »

https://manpages.debian.org/stretch/coreutils/who.1.en.html wrote: -u, --users
list users logged in
Are you sure that you mean the command who with the parameter -u?
Have a nice day!

wimpactus
Posts: 3
Joined: 2017-10-02 19:25

Re: Debian 9 - not display name /etc/hosts

#3 Post by wimpactus »

Hi,

can be without the parameter too, the result is the same, debian 7 shows the host name, debian 9 does not show.

Debian 7 imagem
Image
https://imgur.com/a/b1Gcj


Rgs

Win

wimpactus
Posts: 3
Joined: 2017-10-02 19:25

Re: Debian 9 - not display name /etc/hosts

#4 Post by wimpactus »

Hi,,

this only occurs on the SSH connection, TELNET shows the hostname.

Post Reply