Generally, IPs are a secret, but debian default configurations and ubuntas shine them all in a row:

$ lastlog | grep -v Never Username Port From Latest root pts/0 94.29.***.*** Mon Jan 28 07:59:37 +0000 2019 adm1me pts/7 98.***.***.33 Sun Jul 2 13:49:34 +0000 2017 admin pts/1 cpe-70-***-***-22 Sun Mar 20 18:28:16 +0000 2016 adm1ru pts/0 ***.***.191.116 Sun Nov 29 19:52:10 +0000 2015 mc123val pts/0 176.***.***.100 Sat Sep 22 19:04:16 +0000 2018 # ... и ещё десятки строчек на среднестатистическом shared-хостинге 

This is unacceptable.

I tried to make sudo chmod o-rwx /var/log/wtmp /var/log/lastlog /var/run/utmp , but after restarting, the read permissions return to the place.

  • when the system starts, these files are rectified. in case they are damaged. find the boot script it does and try changing there. better, of course, on a machine with direct access to the bootloader menu, so that if after this the system stops even the root could be made init = / bin / bash - Mike
  • can create users with the flag --no-log-init - VTT
  • @VTT but log I just quite want to read the root (but only the root) - andreymal 1:38 pm
  • one
    BUT? Secret?! Where is it from? - 0andriy

0